#include <Waitable.h>
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.
void qpid::sys::Waitable::waitWaiters | ( | ) | [inline] |
Block till there are no more ScopedWaits.
Referenced by qpid::sys::BlockingQueue< boost::shared_ptr< FrameSet > >::close().
size_t qpid::sys::Waitable::hasWaiters | ( | ) | [inline] |
Returns the number of outstanding ScopedWaits.
Must be called with the lock held.