|
AndroMeta
2.0.0
|
Typical condition variable used for thread synchronization. More...
#include <MCondition.h>
Public Member Functions | |
| MCondition (MMutex *mutex) | |
| ~MCondition () | |
| void | await () |
| bool | await (const mtime &timeout) |
| void | signal () |
| void | broadcast () |
| MMutex * | mutex () |
Typical condition variable used for thread synchronization.
Condition variable for thread synchronization using standard semantics.
| Meta::MCondition::MCondition | ( | MMutex * | mutex | ) |
Constructor.
| mutex | The associated mutex. |
Destructor.
| void Meta::MCondition::await | ( | ) |
Block until signalled. On return, the associated mutex is now unlocked.
| bool Meta::MCondition::await | ( | const mtime & | timeout | ) |
Block until signalled or timeout has been reached. Upon returning true, the associated mutex is now unlocked.
| void Meta::MCondition::broadcast | ( | ) |
Signal all waiting threads.
| void Meta::MCondition::signal | ( | ) |
Signal a waiting thread.
1.7.6.1