#include <cel_syncobjs.h>
Public Member Functions | |
| Event () | |
| ~Event () | |
| void | signal () |
| void | wait () |
Event class provides thread-safe wake up on signal mechanism. This class has its own DataTraits structure and it can be used with SimpleArray with some special restrictions; you can create, allocate, release the array of Event instances but you could not reallocate (resize) the array.
| Celartem::Event::Event | ( | ) |
Event object is usually initialized as class member variable.
| Celartem::Event::~Event | ( | ) |
Removes the Event instance.
| void Celartem::Event::signal | ( | ) |
This method changes the Event to signal state. The thread that waits for the Event object by wait call will be wake up.
| void Celartem::Event::wait | ( | ) |
This method is to sleep the current thread until the Event instance is signal state.