MongoDB  2.7.0
Public Member Functions | Public Attributes | List of all members
mongo::MutexDebugger Class Reference

only used on _DEBUG builds. More...

#include <mutexdebugger.h>

Public Member Functions

void programEnding ()
 outputs some diagnostic info on mutexes (on _DEBUG builds)
 
std::string currentlyLocked () const
 
void entering (mid m)
 
void leaving (mid m)
 

Public Attributes

std::string a
 
std::string b
 

Detailed Description

only used on _DEBUG builds.

MutexDebugger checks that we always acquire locks for multiple mutexes in a consistent (acyclic) order. If we were inconsistent we could deadlock.


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