virtual void net_instaweb::PthreadCondvar::Broadcast |
( |
| ) |
|
|
virtual |
virtual void net_instaweb::PthreadCondvar::Signal |
( |
| ) |
|
|
virtual |
virtual void net_instaweb::PthreadCondvar::TimedWait |
( |
int64 |
timeout_ms | ) |
|
|
virtual |
virtual void net_instaweb::PthreadCondvar::Wait |
( |
| ) |
|
|
virtual |
Wait for condition to be signaled. mutex() must be held; it will be released and then reclaimed when a signal is received. Note that a Wait() may be terminated based on a condition being true, but the condition may no longer be true at the time the thread wakes up. Example: { ScopedMutex lock(cv.mutex()); while (status && !resource_available()) status = cv.wait(); if (status) { use_resource(); } }
Implements net_instaweb::ThreadSystem::Condvar.
The documentation for this class was generated from the following file: