diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2000-07-04 23:51:35 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2000-07-04 23:51:35 +0000 |
commit | 3f6cf549fa90518b89c9686273425524e34e16ed (patch) | |
tree | a7aa2094861e733c5f8c4ca3d71c2c5aa6c362d3 /ace/SUN_Proactor.h | |
parent | 88b010c1df2d5023d94f63e6ad360526369d5cb7 (diff) | |
download | ATCD-3f6cf549fa90518b89c9686273425524e34e16ed.tar.gz |
ChangeLogTag:Tue Jul 4 10:12:12 2000 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
Diffstat (limited to 'ace/SUN_Proactor.h')
-rw-r--r-- | ace/SUN_Proactor.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/ace/SUN_Proactor.h b/ace/SUN_Proactor.h index 138d9a86c21..ad6f5aaf5ef 100644 --- a/ace/SUN_Proactor.h +++ b/ace/SUN_Proactor.h @@ -68,13 +68,23 @@ public: virtual ~ACE_SUN_Proactor (void); // Destructor. - // @@ Alex, this shouldn't be a magic number, i.e., it should - // be a constant, such as ACE_MAX_AIO_OPERATIONS. + // @@ Alex, this shouldn't be a magic number, i.e., it should be a + // constant, such as ACE_MAX_AIO_OPERATIONS. ACE_SUN_Proactor (size_t max_aio_operations = 512); - // Constructor defines max number asynchronous operations that - // can be started at the same time. + // Constructor defines max number asynchronous operations that can + // be started at the same time. + protected: - virtual int handle_events (u_long milli_seconds); + virtual int handle_events (ACE_Time_Value &wait_time); + // 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. + + virtual int handle_events (unsigned long milli_seconds); + // Dispatch a single set of events. If <milli_seconds> elapses + // before any events occur, return 0. Return 1 if a completion is + // dispatched. Return -1 on errors. virtual int start_aio (ACE_POSIX_Asynch_Result *result, int op); // From ACE_POSIX_AIOCB_Proactor. |