diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2001-07-19 02:48:54 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2001-07-19 02:48:54 +0000 |
commit | 21147d626907f3e9b91ce098123a981fc7a7004b (patch) | |
tree | dc3f31f1001f62659ef313fed4ccf380c1ee5085 /ace/ACE.h | |
parent | 48356131877283979c77c42288c6965b02f9ca2a (diff) | |
download | ATCD-21147d626907f3e9b91ce098123a981fc7a7004b.tar.gz |
ChangeLogTag:Wed Jul 18 13:15:06 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
Diffstat (limited to 'ace/ACE.h')
-rw-r--r-- | ace/ACE.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/ace/ACE.h b/ace/ACE.h index 02343d31370..7f348596986 100644 --- a/ace/ACE.h +++ b/ace/ACE.h @@ -6,11 +6,10 @@ * * $Id$ * - * @author Doug Schmidt + * @author Douglas C. Schmidt <schmidt@cs.wustl.edu> */ //============================================================================= - #ifndef ACE_ACE_H #define ACE_ACE_H #include "ace/pre.h" @@ -30,6 +29,7 @@ // Forward declarations. class ACE_Time_Value; class ACE_Message_Block; +class ACE_Handle_Set; /** * @class ACE @@ -401,8 +401,6 @@ public: ACE_TCHAR delim = ACE_DIRECTORY_SEPARATOR_CHAR); - - /** * Returns the current timestamp in the form * "hour:minute:second:microsecond." The month, day, and year are @@ -540,6 +538,19 @@ public: static char debug (void); static void debug (char d); + /// Wrapper facade for <select> that uses <ACE_Handle_Set>s. + static int select (int width, + ACE_Handle_Set *readfds, + ACE_Handle_Set *writefds = 0, + ACE_Handle_Set *exceptfds = 0, + const ACE_Time_Value *timeout = 0); + + /// Wrapper facade for the most common use of <select> that uses + /// <ACE_Handle_Set>s. + static int select (int width, + ACE_Handle_Set &readfds, + const ACE_Time_Value *timeout = 0); + /// Timed wait for handle to get read ready. static int handle_read_ready (ACE_HANDLE handle, const ACE_Time_Value *timeout); |