class similar to Event Class (which is for thread synchronization) but for Process (with Microthread behaviour)
More...
#include <Event_mthread.h>
|
| | Event_mthread (bool autoRelease=true, bool signaled=false) |
| |
| void | set (bool sendToAll=true) |
| |
| EEventMTWaitCode | wait (unsigned int msecs=EVENTMT_WAIT_INFINITE) |
| |
| template<class F > |
| EEventMTWaitCode | waitAndDo (F postSleep, unsigned int msecs=EVENTMT_WAIT_INFINITE) |
| |
|
void | reset () |
| |
|
|
EEventMTWaitCode | _wait (unsigned int msecs) |
| |
|
template<class F > |
| EEventMTWaitCode | _waitAndDo (F postSleep, unsigned int msecs) |
| |
|
void | _set (bool sendToAll) |
| |
|
|
bool | mSignaled |
| |
|
bool | mAutoRelease |
| |
|
TProcessList | mWaitingProcesses |
| |
template<class MultithreadPolicy = EventMTThreadSafePolicy>
class mel::tasking::Event_mthread< MultithreadPolicy >
class similar to Event Class (which is for thread synchronization) but for Process (with Microthread behaviour)
◆ Event_mthread()
template<class MultithreadPolicy = EventMTThreadSafePolicy>
Creates a new event.
- Parameters
-
| autoRelease | flag indicating if the new vent should be auto-reset whenever a wait operation terminates (the default value is true) |
| signaled | flag indicating the initial status of the event. If set to true, the event will be created as "signaled" meaning the next wait operation will return immediately. |
◆ set()
template<class MultithreadPolicy = EventMTThreadSafePolicy>
activate event
- Parameters
-
| [in] | sendToAll | If true then all attached Processed are awake else, only one in FIFO way |
◆ wait()
template<class MultithreadPolicy = EventMTThreadSafePolicy>
wait for event to be triggered
- Parameters
-
- Returns
- EEventMTWaitCode
◆ waitAndDo()
template<class MultithreadPolicy = EventMTThreadSafePolicy>
template<class F >
| EEventMTWaitCode mel::tasking::Event_mthread< MultithreadPolicy >::waitAndDo |
( |
F |
postSleep, |
|
|
unsigned int |
msecs = EVENTMT_WAIT_INFINITE |
|
) |
| |
|
inline |
sleep Process, executing callback on sleep,until wakeup
- Returns
- bool with same meaning as wait
The documentation for this class was generated from the following file: