#include <cxxtools/condition.h>

Public Member Functions | |
| Condition () | |
| Default Constructor. | |
| ~Condition () | |
| Destructor. | |
| void | wait (Mutex &mtx) |
| Wait until condition becomes signalled. | |
| void | wait (MutexLock &m) |
| bool | wait (Mutex &mtx, unsigned int ms) |
| Wait until condition becomes signalled. | |
| bool | wait (MutexLock &m, unsigned int ms) |
| void | signal () |
| Unblock a single blocked thread. | |
| void | broadcast () |
| Unblock all blocked threads. | |
| void wait | ( | Mutex & | mtx | ) |
Causes the caller to be suspended until the condition will be signaled. The given mutex will be unlocked before the caller is suspended.
Referenced by Pool< tntdb::Connection, tntdb::ConnectionPool::Connector >::get().
| bool wait | ( | Mutex & | mtx, | |
| unsigned int | ms | |||
| ) |
Causes the caller to be suspended until the condition will be signaled. The given mutex will be unlocked before the caller is suspended. The suspension takes at maximum ms milliseconds. Returns true if successful, false if a timeout occurred.