summaryrefslogtreecommitdiff
path: root/tests/MT_Reactor_Timer_Test.cpp
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-12-13 22:29:57 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-12-13 22:29:57 +0000
commit0c2ebd90960a41b5be35453fac56fa8acc4c1e2d (patch)
treee687533b7f3d9d6e7446bf16004977b36749dd78 /tests/MT_Reactor_Timer_Test.cpp
parentc0fac04f11fe552c39cf4c3714b7825f90c8a9cf (diff)
downloadATCD-0c2ebd90960a41b5be35453fac56fa8acc4c1e2d.tar.gz
Changed ACE_OS::{read,write} to ACE::{recv,send}.
Diffstat (limited to 'tests/MT_Reactor_Timer_Test.cpp')
-rw-r--r--tests/MT_Reactor_Timer_Test.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/MT_Reactor_Timer_Test.cpp b/tests/MT_Reactor_Timer_Test.cpp
index 80f282e9e70..e6cdfd09620 100644
--- a/tests/MT_Reactor_Timer_Test.cpp
+++ b/tests/MT_Reactor_Timer_Test.cpp
@@ -58,7 +58,7 @@ Time_Handler::Time_Handler (void)
// seconds. The one at 3 seconds will get cancelled when the thread
// starts.
-void
+void
Time_Handler::setup (void)
{
ACE_Reactor *r = ACE_Reactor::instance ();
@@ -92,7 +92,7 @@ Time_Handler::verify_results (void)
return 0;
}
-int
+int
Time_Handler::svc (void)
{
ACE_Reactor *r = ACE_Reactor::instance ();
@@ -124,7 +124,7 @@ Time_Handler::svc (void)
return 0;
}
-int
+int
Time_Handler::handle_timeout (const ACE_Time_Value &tv,
const void *arg)
{
@@ -168,12 +168,12 @@ Dispatch_Count_Handler::Dispatch_Count_Handler (void)
ASYS_TEXT ("%p\n"),
ASYS_TEXT ("register_handler")));
// Put something in our pipe and smoke it... ;-)
- else if (ACE_OS::write (this->pipe_.write_handle (),
- "z",
- 1) == -1)
+ else if (ACE::send (this->pipe_.write_handle (),
+ "z",
+ 1) == -1)
ACE_ERROR ((LM_ERROR,
ASYS_TEXT ("%p\n"),
- ASYS_TEXT ("write")));
+ ASYS_TEXT ("send")));
// Call notify to prime the pump for this, as well.
else if (r->notify (this) == -1)
ACE_ERROR ((LM_ERROR,
@@ -208,10 +208,10 @@ Dispatch_Count_Handler::handle_input (ACE_HANDLE h)
{
char c;
- if (ACE_OS::read (h, &c, 1) != 1)
+ if (ACE::recv (h, &c, 1) != 1)
ACE_ERROR_RETURN ((LM_ERROR,
ASYS_TEXT ("%p\n"),
- ASYS_TEXT ("read")),
+ ASYS_TEXT ("recv")),
-1);
ACE_ASSERT (c == 'z');