Beatmup
Beatmup::LockableObject Class Reference

#include <lockable_object.h>

Inheritance diagram for Beatmup::LockableObject:
Beatmup::Object Beatmup::GL::RecycleBin Beatmup::GL::VariablesBundle Beatmup::Scene Beatmup::ImageShader

Classes

class  LockGuard
 

Public Member Functions

void lock ()
 
void unlock ()
 
- Public Member Functions inherited from Beatmup::Object
virtual ~Object ()
 

Private Attributes

std::mutex access
 

Detailed Description

Definition at line 24 of file lockable_object.h.

Member Function Documentation

◆ lock()

void Beatmup::LockableObject::lock ( )
inline

Definition at line 28 of file lockable_object.h.

28 { access.lock(); }

◆ unlock()

void Beatmup::LockableObject::unlock ( )
inline

Definition at line 30 of file lockable_object.h.

30 { access.unlock(); }

Member Data Documentation

◆ access

std::mutex Beatmup::LockableObject::access
private

Definition at line 26 of file lockable_object.h.


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