CppCMS
Public Member Functions
booster::condition_variable Class Reference

This is conditional variable object. More...

#include <booster/booster/thread.h>

List of all members.

Public Member Functions

void wait (unique_lock< mutex > &m)
void notify_one ()
void notify_all ()

Detailed Description

This is conditional variable object.

For detailed description of the concept read http://en.wikipedia.org/wiki/Monitor_(synchronization)


Member Function Documentation

Notify all waiting process on the condition. If no process waits then the notification would be ignored

Notify exactly one waiting process on the condition. If no process waits then the notification would be ignored

Wait for the condition atomically unlocking the mutex referenced by m.

When the condition occurs the lock on the mutex would be acquired again.

Note it is unspecified whether suspicious wakes can occur. It is good idea to check whether the condition hold after this function returns.


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