summaryrefslogtreecommitdiff
path: root/ace/Proactor.h
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 /ace/Proactor.h
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 'ace/Proactor.h')
-rw-r--r--ace/Proactor.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/ace/Proactor.h b/ace/Proactor.h
index fa7cc470911..20472af869f 100644
--- a/ace/Proactor.h
+++ b/ace/Proactor.h
@@ -135,13 +135,16 @@ public:
virtual int handle_events (ACE_Time_Value &wait_time);
// Dispatch a single set of events. If <wait_time> elapses before
- // any events occur, return. Return 0 on success, non-zero (-1) on
- // timeouts/errors and errno is set accordingly.
+ // any events occur, return 0. Return 1 on success i.e., when a
+ // completion is dispatched, non-zero (-1) on errors and errno is
+ // set accordingly.
virtual int handle_events (void);
// Block indefinitely until at least one event is dispatched.
- // Return 0 on success, non-zero (-1) on timeouts/errors and errno
- // is set accordingly.
+ // Dispatch a single set of events. If <wait_time> elapses before
+ // any events occur, return 0. Return 1 on success i.e., when a
+ // completion is dispatched, non-zero (-1) on errors and errno is
+ // set accordingly.
int wake_up_dispatch_threads (void);
// Add wakeup dispatch threads (reinit).