ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Auxillary class to (un)lock a mutex on the stack. More...

#include <mutex.h>

List of all members.

Public Member Functions

 StackLock (MutexRef mutex, const char *mutexName=nullptr)
 StackLock (const Mutex &mutex, const char *mutexName=nullptr)
 ~StackLock ()

Private Member Functions

void lock ()
void unlock ()

Private Attributes

MutexRef _mutex
const char * _mutexName

Detailed Description

Auxillary class to (un)lock a mutex on the stack.

Definition at line 42 of file common/mutex.h.


Constructor & Destructor Documentation

Common::StackLock::StackLock ( MutexRef  mutex,
const char *  mutexName = nullptr 
) [explicit]

Definition at line 50 of file mutex.cpp.

Common::StackLock::StackLock ( const Mutex mutex,
const char *  mutexName = nullptr 
) [explicit]

Definition at line 55 of file mutex.cpp.

Common::StackLock::~StackLock (  ) 

Definition at line 60 of file mutex.cpp.


Member Function Documentation

void Common::StackLock::lock (  )  [private]

Definition at line 64 of file mutex.cpp.

void Common::StackLock::unlock (  )  [private]

Definition at line 71 of file mutex.cpp.


Member Data Documentation

Definition at line 43 of file common/mutex.h.

const char* Common::StackLock::_mutexName [private]

Definition at line 44 of file common/mutex.h.


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


Generated on Sat Jan 19 2019 05:05:55 for ResidualVM by doxygen 1.7.1
curved edge   curved edge