MADNESS 0.10.1
Public Member Functions | Private Attributes | List of all members
madness::ScopedMutex< mutexT > Class Template Reference

Mutex that is applied/released at start/end of a scope. More...

#include <worldmutex.h>

Collaboration diagram for madness::ScopedMutex< mutexT >:
Collaboration graph
[legend]

Public Member Functions

 ScopedMutex (const mutexT &m)
 
 ScopedMutex (const mutexT *m)
 
virtual ~ScopedMutex ()
 

Private Attributes

const mutexT * mutex
 

Detailed Description

template<class mutexT = Mutex>
class madness::ScopedMutex< mutexT >

Mutex that is applied/released at start/end of a scope.

The mutex must provide lock and unlock methods

Constructor & Destructor Documentation

◆ ScopedMutex() [1/2]

template<class mutexT = Mutex>
madness::ScopedMutex< mutexT >::ScopedMutex ( const mutexT *  m)
inline

◆ ScopedMutex() [2/2]

template<class mutexT = Mutex>
madness::ScopedMutex< mutexT >::ScopedMutex ( const mutexT &  m)
inline

◆ ~ScopedMutex()

template<class mutexT = Mutex>
virtual madness::ScopedMutex< mutexT >::~ScopedMutex ( )
inlinevirtual

Member Data Documentation

◆ mutex

template<class mutexT = Mutex>
const mutexT* madness::ScopedMutex< mutexT >::mutex
private

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