FastUIDraw
Classes | Public Member Functions | List of all members
fastuidraw::Mutex Class Reference

#include <mutex.hpp>

Inheritance diagram for fastuidraw::Mutex:
Inheritance graph
[legend]

Classes

class  Guard
 

Public Member Functions

 Mutex (void)
 
void lock (void)
 
bool try_lock (void)
 
void unlock (void)
 

Detailed Description

Mutex implements a non-recursive mutex.

Definition at line 33 of file mutex.hpp.

Constructor & Destructor Documentation

◆ Mutex()

fastuidraw::Mutex::Mutex ( void  )

Ctor.

Member Function Documentation

◆ lock()

void fastuidraw::Mutex::lock ( void  )

Aquire the lock of the mutex; only return once the lock is aquired.

◆ try_lock()

bool fastuidraw::Mutex::try_lock ( void  )

Try to aquire the lock of the mutex; if the mutex is already locked return false; otherwise return true.

◆ unlock()

void fastuidraw::Mutex::unlock ( void  )

Release the lock of the mutex.


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