Event Class Reference

[APE Index] [APE Hierarchy] [Headers]


Thread synchornization on event notification. More...

#include <thread.h>

Inherits: Mutex

Public Members

Protected Members


Detailed Description

The APE Event class implements a feature originally found in the WIN32 API; event notification. A target thread waits on a resetable Event, and one or more other threads can then signal the waiting thread to resume execution. A timeout can be used to specify a wait duration in milliseconds. The Event class must be reset before it can be used again as a trigger. @author: David Sugar


void Reset(void) [public]

Once signaled, the Event class must be "reset" before responding to a new signal.

See Also:
Signal

void Signal(void) [public]

Signal the event for the waiting thread.

bool Wait(timeout_t timer = 0) [public]

Wait either for the event to be signaled by another thread or for the specified timeout duration.

Parameters:
timer timeout in milliseconds to wait for a signal.
Returns:
true if signaled, false if timed out.
See Also:
Signal

Documentation generated by dyfet@home.sys on Thu Dec 16 09:54:26 EST 1999
Kdoc