20#include <boost/noncopyable.hpp>
21#include <boost/thread/condition_variable.hpp>
22#include <boost/thread/mutex.hpp>
39 void waitToBeNotified();
48 unsigned long long lookFor;
49 unsigned long long cur;
50 boost::condition_variable _condition;
60 typedef unsigned long long When;
82 boost::condition_variable _condition;
Definition synchronization.h:32
establishes a synchronization point between threads.
Definition synchronization.h:56
void waitFor(When)
awaits the next notifyAll() call by another thread.
void awaitBeyondNow()
a bit faster than waitFor( now() )
void notifyAll(When)
may be called multiple times.
unsigned nWaiting() const
indicates how many threads are waiting for a notify.
Definition synchronization.h:76
the main MongoDB namespace
Definition bulk_operation_builder.h:24