Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
A class that locks the specified mutex when constructed and unlocks it when destructed. More...
#include <ScopedMutex.hpp>
Public Member Functions | |
ScopedMutex (IMutex *mutex) | |
Constructor: locks the mutex. | |
~ScopedMutex () | |
Destructor: unlocks the mutex. |
A class that locks the specified mutex when constructed and unlocks it when destructed.
Definition at line 43 of file ScopedMutex.hpp.
vl::ScopedMutex::ScopedMutex | ( | IMutex * | mutex ) | [inline] |
Constructor: locks the mutex.
Definition at line 47 of file ScopedMutex.hpp.
References vl::IMutex::lock().
vl::ScopedMutex::~ScopedMutex | ( | ) | [inline] |
Destructor: unlocks the mutex.
Definition at line 54 of file ScopedMutex.hpp.
References vl::IMutex::unlock().