CoreComponents 3.0.0
A Modern C++ Toolkit
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages Modules
Mutex Class Referencefinal

Unconditional thread suspension and resumption. More...

#include <cc/Mutex>

Public Member Functions

 Mutex ()
 Create a new mutex.
 
bool tryAcquire ()
 Try to lock this mutex.
 
void acquire ()
 Lock this mutex.
 
void release ()
 Unlock this mutex.
 

Detailed Description

Unconditional thread suspension and resumption.

Exceptions
SystemError
See also
Guard

Constructor & Destructor Documentation

◆ Mutex()

Mutex ( )

Create a new mutex.

Member Function Documentation

◆ tryAcquire()

bool tryAcquire ( )

Try to lock this mutex.

◆ acquire()

void acquire ( )

Lock this mutex.

◆ release()

void release ( )

Unlock this mutex.