MongoDB  2.7.0
Classes | Public Member Functions | List of all members
mongo::SimpleMutex Class Reference

The concept with SimpleMutex is that it is a basic lock/unlock with no special functionality (such as try and try timeout). More...

#include <mutex.h>

Inheritance diagram for mongo::SimpleMutex:

Classes

class  scoped_lock
 

Public Member Functions

void dassertLocked () const
 
 SimpleMutex (const StringData &name)
 
void lock ()
 
void unlock ()
 

Detailed Description

The concept with SimpleMutex is that it is a basic lock/unlock with no special functionality (such as try and try timeout).

Thus it can be implemented using OS-specific facilities in all environments (if desired). On Windows, the implementation below is faster than boost mutex.


The documentation for this class was generated from the following file: