Condition Mutex to pair with conditionals.
More...
#include <condition.h>
|
| ConditionMutex () |
| Initialize and construct conditional.
|
|
void | lock (void) |
| Lock the conditional's supporting mutex.
|
|
void | unlock (void) |
| Unlock the conditional's supporting mutex.
|
|
| ~ConditionMutex () |
| Destroy conditional, release any blocked threads.
|
|
Condition Mutex to pair with conditionals.
Separating the mutex means we can apply it either paired with a condition variable, or shared among multiple condition variables.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 61 of file condition.h.
◆ lock()
void ucommon::ConditionMutex::lock |
( |
void | | ) |
|
|
inline |
Lock the conditional's supporting mutex.
Definition at line 100 of file condition.h.
◆ unlock()
void ucommon::ConditionMutex::unlock |
( |
void | | ) |
|
|
inline |
Unlock the conditional's supporting mutex.
Definition at line 107 of file condition.h.
◆ autolock
◆ ConditionVar
◆ mutex
pthread_mutex_t ucommon::ConditionMutex::mutex |
|
mutableprotected |
The documentation for this class was generated from the following file:
- /builddir/build/BUILD/ucommon-7.0.0-build/ucommon-7.0.0/inc/ucommon/condition.h