#include <synchronization.h>
Public Member Functions | |
void | notifyAll () |
NotifyAll () | |
void | wait () |
Private Attributes | |
boost::condition | _condition |
unsigned long long | _counter |
mongo::mutex | _mutex |
establishes a synchronization point between threads. N threads are waits and one is notifier. threadsafe.
Definition at line 55 of file synchronization.h.
mongo::NotifyAll::NotifyAll | ( | ) |
void mongo::NotifyAll::notifyAll | ( | ) |
may be called multiple times. notifies all waiters
void mongo::NotifyAll::wait | ( | ) |
awaits the next notifyAll() call by another thread. notifications that precede this call are ignored -- we are looking for a fresh event.
boost::condition mongo::NotifyAll::_condition [private] |
Definition at line 70 of file synchronization.h.
unsigned long long mongo::NotifyAll::_counter [private] |
Definition at line 69 of file synchronization.h.
mongo::mutex mongo::NotifyAll::_mutex [private] |
Definition at line 68 of file synchronization.h.