31 #include "mongo/base/disallow_copying.h" 32 #include "mongo/stdx/condition_variable.h" 33 #include "mongo/stdx/mutex.h" 44 typedef unsigned long long When;
unsigned _nWaiting
Definition: commit_notifier.h:80
unsigned nWaiting() const
Returns how many threads are blocked in the waitFor/awaitBeyondNow calls.
Definition: commit_notifier.h:70
Establishes a synchronization point between threads.
Definition: commit_notifier.h:40
Copyright (C) 2014 MongoDB Inc.
Definition: bson_collection_catalog_entry.cpp:38
When _lastDone
Definition: commit_notifier.h:78
void waitFor(When e)
Awaits the next notifyAll() call by another thread.
Definition: commit_notifier.cpp:48
stdx::condition_variable _condition
Definition: commit_notifier.h:76
When _lastReturned
Definition: commit_notifier.h:79
~CommitNotifier()
Definition: commit_notifier.cpp:39
stdx::mutex _mutex
Definition: commit_notifier.h:75
When now()
Definition: commit_notifier.cpp:43
void notifyAll(When e)
May be called multiple times.
Definition: commit_notifier.cpp:65
unsigned long long When
Definition: commit_notifier.h:44
void awaitBeyondNow()
A bit faster than waitFor(now()).
Definition: commit_notifier.cpp:56
MONGO_DISALLOW_COPYING(CommitNotifier)