Open Lighting Architecture  Latest Git
Public Member Functions | Friends | List of all members
ola::thread::Mutex Class Reference

Detailed Description

A Mutex object

Public Member Functions

 Mutex ()
 
 ~Mutex ()
 
void Lock ()
 
bool TryLock ()
 
void Unlock ()
 

Friends

class ConditionVariable
 

Constructor & Destructor Documentation

◆ Mutex()

ola::thread::Mutex::Mutex ( )

Construct a new mutex object

◆ ~Mutex()

ola::thread::Mutex::~Mutex ( )

Clean up

Member Function Documentation

◆ Lock()

void ola::thread::Mutex::Lock ( )

Lock this mutex

◆ TryLock()

bool ola::thread::Mutex::TryLock ( )

Try and lock this mutex

Returns
true if we got the lock, false otherwise

◆ Unlock()

void ola::thread::Mutex::Unlock ( )

Unlock this mutex


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