MongoDB C++ Driver
legacy-1.1.2
|
establishes a synchronization point between threads. More...
#include <synchronization.h>
Public Member Functions | |
void | waitFor (When) |
awaits the next notifyAll() call by another thread. More... | |
void | awaitBeyondNow () |
a bit faster than waitFor( now() ) | |
void | notifyAll (When) |
may be called multiple times. More... | |
unsigned | nWaiting () const |
indicates how many threads are waiting for a notify. More... | |
establishes a synchronization point between threads.
N threads are waits and one is notifier. threadsafe.
void mongo::NotifyAll::notifyAll | ( | When | ) |
may be called multiple times.
notifies all waiters
|
inline |
indicates how many threads are waiting for a notify.
void mongo::NotifyAll::waitFor | ( | When | ) |
awaits the next notifyAll() call by another thread.
notifications that precede this call are ignored – we are looking for a fresh event.