Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
An interface to implement simple platform-independent mutexes used to protect critical sections. More...
#include <IMutex.hpp>
Public Member Functions | |
virtual void | lock ()=0 |
Locks the mutex. | |
virtual void | unlock ()=0 |
Unlocks the mutex. | |
virtual int | isLocked () const =0 |
Returns 1 if locked, 0 if non locked, -1 if unknown. |
An interface to implement simple platform-independent mutexes used to protect critical sections.
/sa vl::Object::setRefCountMutex(), vl::Log::setLogMutex().
Definition at line 44 of file IMutex.hpp.
virtual void vl::IMutex::lock | ( | ) | [pure virtual] |
Locks the mutex.
Referenced by vl::Object::decReference(), and vl::ScopedMutex::ScopedMutex().
virtual void vl::IMutex::unlock | ( | ) | [pure virtual] |
Unlocks the mutex.
Referenced by vl::Object::decReference(), and vl::ScopedMutex::~ScopedMutex().
virtual int vl::IMutex::isLocked | ( | ) | const [pure virtual] |
Returns 1 if locked, 0 if non locked, -1 if unknown.