ASL
Mutex Class Reference

Detailed Description

A mutex that can be locked or unlocked to protect concurrent access to a resource.

However it is recommended to use Lock instead, which is automatically unlocked on scope exit.

#include <Mutex.h>

Public Member Functions

void lock ()
 Locks the mutex. More...
 
void unlock ()
 Unlocks the mutex so other threads can use the protected resource.
 

Member Function Documentation

◆ lock()

void lock ( )
inline

Locks the mutex.

If it was already locked by another thread, the function will wait until it is unlocked.


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