virtual void net_instaweb::NullCondvar::Broadcast |
( |
| ) |
|
|
inlinevirtual |
Calls callback once the next time TimedWait() is called. If TimedWait() is not called we will CHECK-fail. Doesn't take ownership of the callback.
virtual void net_instaweb::NullCondvar::Signal |
( |
| ) |
|
|
inlinevirtual |
virtual void net_instaweb::NullCondvar::TimedWait |
( |
int64 |
timeout_ms | ) |
|
|
virtual |
virtual void net_instaweb::NullCondvar::Wait |
( |
| ) |
|
|
inlinevirtual |
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: