#include <Waitable.h>
Inheritance diagram for qpid::sys::Waitable:
Public Member Functions | |
void | waitWaiters () |
Block till there are no more ScopedWaits. | |
size_t | hasWaiters () |
Returns the number of outstanding ScopedWaits. | |
Classes | |
struct | ScopedWait |
Use this inside a scoped lock around the call to Monitor::wait to be counted as a waiter. More... |
Threads declare a ScopedWait around wait() inside a ScopedLock to be considered waiters.
size_t qpid::sys::Waitable::hasWaiters | ( | ) | [inline] |
Returns the number of outstanding ScopedWaits.
Must be called with the lock held.
void qpid::sys::Waitable::waitWaiters | ( | ) | [inline] |
Block till there are no more ScopedWaits.