Open Lighting Architecture  0.10.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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

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

Construct a new mutex object

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

Clean up

Member Function Documentation

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

Lock this mutex

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

Try and lock this mutex

Returns
true if we got the lock, false otherwise
void ola::thread::Mutex::Unlock ( )

Unlock this mutex


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