| Kyoto Cabinet
   
    | 
Condition variable. More...
#include <kcthread.h>
| Public Member Functions | |
| CondVar () | |
| Default constructor. | |
| ~CondVar () | |
| Destructor. | |
| void | wait (Mutex *mutex) | 
| Wait for the signal. | |
| bool | wait (Mutex *mutex, double sec) | 
| Wait for the signal. | |
| void | signal () | 
| Send the wake-up signal to another waiting thread. | |
| void | broadcast () | 
| Send the wake-up signals to all waiting threads. | |
Condition variable.
| kyotocabinet::CondVar::CondVar | ( | ) |  [explicit] | 
Default constructor.
Destructor.
| void kyotocabinet::CondVar::wait | ( | Mutex * | mutex | ) | 
Wait for the signal.
| mutex | a locked mutex. | 
| bool kyotocabinet::CondVar::wait | ( | Mutex * | mutex, | 
| double | sec | ||
| ) | 
Wait for the signal.
| mutex | a locked mutex. | 
| sec | the interval of the suspension in seconds. | 
| void kyotocabinet::CondVar::signal | ( | ) | 
Send the wake-up signal to another waiting thread.
| void kyotocabinet::CondVar::broadcast | ( | ) | 
Send the wake-up signals to all waiting threads.
 1.7.6.1
 1.7.6.1