mongo::NotifyAll Class Reference

#include <synchronization.h>

List of all members.

Public Member Functions

void notifyAll ()
 NotifyAll ()
void wait ()

Private Attributes

boost::condition _condition
unsigned long long _counter
mongo::mutex _mutex

Detailed Description

establishes a synchronization point between threads. N threads are waits and one is notifier. threadsafe.

Definition at line 55 of file synchronization.h.


Constructor & Destructor Documentation

mongo::NotifyAll::NotifyAll (  ) 

Member Function Documentation

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.


Member Data Documentation

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.

Definition at line 68 of file synchronization.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


mongodb
Author(s): Nate Koenig
autogenerated on Fri Jan 11 12:15:56 2013