summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authoralex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-02-25 05:52:29 +0000
committeralex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-02-25 05:52:29 +0000
commit04135dc026251b550b70cd926195713ec5f5bce5 (patch)
tree540084666e6f63938d7d5975c82a5024afffb2fd /examples
parent82f3b6c4217127af826ea1db40bc4e9adf09f8ec (diff)
downloadATCD-04135dc026251b550b70cd926195713ec5f5bce5.tar.gz
Changed the return values of the <ACE_Proactor::handle_events> API to
return -1 on error, 0 on timeout, 1 on success. This has been done so that it looks like the <ACE_Reactor::handle_events>. Previously <ACE_Proactor::handle_events> was returning -1 on error, 0 on success and 0 on timeout also. Fixed the <ACE_POSIX_AIOCB_Proactor::handle_events> and <ACE_POSIX_SIG_Proactor::handle_events> to do indefinite blocking when ACE_INFINITE is passed. <sigwaitinfo> is used instead of <sigtimedwait>. Renamed the <ACE_AIO_Accept_Handler> class to more appropriate <ACE_Notify_Pipe_Manager>.
Diffstat (limited to 'examples')
-rw-r--r--examples/Reactor/Proactor/test_proactor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/Reactor/Proactor/test_proactor.cpp b/examples/Reactor/Proactor/test_proactor.cpp
index 208c4af562f..7d25fd9f3c4 100644
--- a/examples/Reactor/Proactor/test_proactor.cpp
+++ b/examples/Reactor/Proactor/test_proactor.cpp
@@ -602,12 +602,12 @@ main (int argc, char *argv[])
else if (sender.open (host, port) == -1)
return -1;
- int error = 0;
+ int success = 1;
- while (!error && !done)
+ while (success > 0 && !done)
// dispatch events
- error = ACE_Proactor::instance ()->handle_events ();
-
+ success = ACE_Proactor::instance ()->handle_events ();
+
return 0;
}