Visualization Library 2.0.0

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | List of all members
vl::ScopedMutex Class Reference

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. More...
 
 ~ScopedMutex ()
 Destructor: unlocks the mutex. More...
 

Detailed Description

A class that locks the specified mutex when constructed and unlocks it when destructed.

Definition at line 43 of file ScopedMutex.hpp.

Constructor & Destructor Documentation

◆ ScopedMutex()

vl::ScopedMutex::ScopedMutex ( IMutex mutex)
inline

Constructor: locks the mutex.

Definition at line 47 of file ScopedMutex.hpp.

References vl::IMutex::lock().

◆ ~ScopedMutex()

vl::ScopedMutex::~ScopedMutex ( )
inline

Destructor: unlocks the mutex.

Definition at line 54 of file ScopedMutex.hpp.

References vl::IMutex::unlock().


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