#include <Condition.hpp>
Public Member Functions | |
Condition () | |
void | wait () |
void | signal () |
Private Attributes | |
volatile bool | cond |
pthread_mutex_t | condLock |
pthread_cond_t | condCond |
One thread waits for the condition to become true. Another thread signals when the condition becomes true. After the waiting thread is released, it sets the condition value to false.
|
Creates a Condition object |
|
Makes the condition true and signal the situation to a blocked thread, if any. |
|
Blocks the calling thread until the condition becomes true |
|
the condition flag |
|
condition variable |
|
lock for the critical section |