A user level condition variable.
More...
#include <BlockingSync.h>
A user level condition variable.
User-level Condition Variable blocks only in user-level by suspending the uThreads instead of blocking the kernel threads.
bool ConditionVariable::empty |
( |
| ) |
|
|
inline |
Whether the waiting list is empty or not.
- Returns
- Whether the waiting list is empty or not
void ConditionVariable::signal |
( |
Mutex & |
mutex | ) |
|
|
inline |
Unblock one uThread waiting on the condition variable.
- Parameters
-
mutex | The mutex to be released after unblocking is done |
void ConditionVariable::signalAll |
( |
Mutex & |
mutex | ) |
|
|
inline |
unblock all uThreads waiting on the condition variable
- Parameters
-
mutex | The mutex to be released after unblocking is done |
void ConditionVariable::wait |
( |
Mutex & |
mutex | ) |
|
|
inline |
Block uThread on the condition variable using the provided mutex.
- Parameters
-
mutex | used to synchronize access to the condition |
The documentation for this class was generated from the following file: