mongo::mutex Class Reference

#include <mutex.h>

List of all members.

Classes

class  scoped_lock
class  try_lock

Public Member Functions

 mutex (const char *)
 ~mutex ()

Private Member Functions

boost::timed_mutex & boost ()

Private Attributes

boost::timed_mutex * _m

Detailed Description

On pthread systems, it is an error to destroy a mutex while held. Static global mutexes may be held upon shutdown in our implementation, and this way we avoid destroying them. NOT recursive.

Definition at line 154 of file mutex.h.


Constructor & Destructor Documentation

mongo::mutex::mutex ( const char *   )  [inline]

Definition at line 164 of file mutex.h.

mongo::mutex::~mutex (  )  [inline]

Definition at line 170 of file mutex.h.


Member Function Documentation

boost::timed_mutex& mongo::mutex::boost (  )  [inline, private]

Definition at line 224 of file mutex.h.


Member Data Documentation

boost::timed_mutex* mongo::mutex::_m [private]

Definition at line 225 of file mutex.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