Inheritance diagram for ACE_Event:
Public Member Functions
|ACE_Event (int manual_reset=0, int initial_state=0, int type=USYNC_THREAD, const ACE_TCHAR *name=0, void *arg=0)|
|Constructor that creates event. |
|Implicitly destroy the event variable. |
|ACE_event_t||handle (void) const|
|Underlying handle to event. |
|void||handle (ACE_event_t new_handle)|
|int||wait (const ACE_Time_Value *abstime, int use_absolute_time=1)|
|Set to nonsignaled state. |
|void||dump (void) const|
|Dump the state of an object. |
|Declare the dynamic allocation hooks. |
|The underlying handle. |
Private Member Functions
|ACE_Event (const ACE_Event &event)|
|const ACE_Event &||operator= (const ACE_Event &rhs)|
Portable implementation of an Event mechanism, which is native to Win32, but must be emulated on UNIX. All platforms support process-scope locking support. However, only Win32 platforms support global naming and system-scope locking support.
|ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Event::ACE_Event||(||int|| manual_reset =
|int|| initial_state =
|int|| type =
|const ACE_TCHAR *|| name =
|void *|| arg = |
Constructor that creates event.
Implicitly destroy the event variable.
|ACE_Event::ACE_Event||(||const ACE_Event &||event||)||
|ACE_INLINE void ACE_Event::handle||(||ACE_event_t||new_handle||)|
Set the underlying handle to event. Note that this method assumes ownership of the <handle> and will close it down in <remove>. If you want the <handle> to stay open when <remove> is called make sure to call <dup> on the <handle> before closing it. You are responsible for the closing the existing <handle> before overwriting it.
|ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE ACE_event_t ACE_Event::handle||(||void||)||const|
Underlying handle to event.
if MANUAL reset wakeup all waiting threads and reset event else AUTO reset wakeup one waiting thread (if present) and reset event
Explicitly destroy the event variable. Note that only one thread should call this method since it doesn't protect against race conditions.
Set to nonsignaled state.
if MANUAL reset wake up all waiting threads set to signaled state else AUTO reset if no thread is waiting, set to signaled state if thread(s) are waiting, wake up one waiting thread and reset event
|int ACE_Event::wait||(||const ACE_Time_Value *||abstime,|
|int|| use_absolute_time = |
Same as wait() above, but this one can be timed abstime is absolute time-of-day if if use_absolute_time is non-0, else it is relative time.
The underlying handle.
Keeps track of whether <remove> has been called yet to avoid multiple <remove> calls, e.g., explicitly and implicitly in the destructor. This flag isn't protected by a lock, so make sure that you don't have multiple threads simultaneously calling <remove> on the same object, which is a bad idea anyway...