diff options
author | alex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-02-25 05:52:29 +0000 |
---|---|---|
committer | alex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-02-25 05:52:29 +0000 |
commit | 04135dc026251b550b70cd926195713ec5f5bce5 (patch) | |
tree | 540084666e6f63938d7d5975c82a5024afffb2fd /examples | |
parent | 82f3b6c4217127af826ea1db40bc4e9adf09f8ec (diff) | |
download | ATCD-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.cpp | 8 |
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; } |