#include <mcllib/MCCondVar.h>
Inheritance diagram for MCCondVar:

Public Member Functions | |
| virtual void | lock () |
| Lock the mutex provided at construction time. | |
| MCCondVar (MCInMutex *pMutex) | |
| Construct a condition variable. | |
| virtual void | notify () |
| Notify a single waiter. | |
| virtual void | notifyAll () |
| Notify all waiters. | |
| virtual void | unlock () |
| Unlock the mutex provided at construction time. | |
| virtual bool | wait (mcinterval_t interval) |
| Wait for a condition variable to be notified. | |
| virtual void | wait () |
| Wait indefinitely for the condition variable to be notify'd. | |
| virtual | ~MCCondVar () |
| Virtual destructor. | |
Supports the basic operations of MCMutex and MCWaitNotifyAll. Can be used in scoped locks via the lock object. The condition variable is used in conjunction with a mutex which is provided at construction time. The mutex cannot be NULL.
|
|
Construct a condition variable.
|
|
|
Wait for a condition variable to be notified.
Implements MCWaitNotifyAll. |
1.3.9.1