UCommon
Public Member Functions | Protected Attributes | Friends
ucommon::ConditionMutex Class Reference

Condition Mutex to pair with conditionals. More...

#include <condition.h>

Inheritance diagram for ucommon::ConditionMutex:
Inheritance graph
[legend]

Public Member Functions

 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.
 

Protected Attributes

pthread_mutex_t mutex
 

Friends

class autolock
 
class ConditionVar
 

Detailed Description

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.


The documentation for this class was generated from the following file: