EpcTools
An event based multi-threaded C++ development framework.
|
An object that can be waited on to be set in another thread. More...
#include <esynch.h>
Public Member Functions | |
EEvent (bool state=false) | |
Class constructor. More... | |
~EEvent () | |
Class destructor. More... | |
Void | reset () |
Resets the event state. More... | |
Void | set () |
Sets the event. More... | |
Bool | wait (int ms=-1) |
Waits for the event to be set. More... | |
Bool | isSet () |
Determines if the event has been set. More... | |
An object that can be waited on to be set in another thread.
EEvent::EEvent | ( | bool | state = false | ) |
Class constructor.
state | the initial state of the event. |
EEvent::~EEvent | ( | ) |
Class destructor.
|
inline |
Determines if the event has been set.
void EEvent::reset | ( | ) |
Resets the event state.
void EEvent::set | ( | ) |
Sets the event.
bool EEvent::wait | ( | int | ms = -1 | ) |
Waits for the event to be set.
ms | if -1, this function waits indefinitely, otherwise waits the specified number of milli-seonds for the event to be set. |