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::IMutex Class Referenceabstract

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. More...
 
virtual void unlock ()=0
 Unlocks the mutex. More...
 
virtual int isLocked () const =0
 Returns 1 if locked, 0 if non locked, -1 if unknown. More...
 

Detailed Description

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.

Member Function Documentation

◆ isLocked()

virtual int vl::IMutex::isLocked ( ) const
pure virtual

Returns 1 if locked, 0 if non locked, -1 if unknown.

◆ lock()

virtual void vl::IMutex::lock ( )
pure virtual

Locks the mutex.

Referenced by vl::Object::decReference(), and vl::ScopedMutex::ScopedMutex().

◆ unlock()

virtual void vl::IMutex::unlock ( )
pure virtual

Unlocks the mutex.

Referenced by vl::Object::decReference(), and vl::ScopedMutex::~ScopedMutex().


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