libpromeki main
PROfessional MEdia toolKIt
 
Loading...
Searching...
No Matches
Mutex::Locker Class Reference

RAII scoped locker for Mutex. More...

#include <mutex.h>

Public Member Functions

 Locker (Mutex &mutex)
 Constructs a Locker and locks the given mutex.
 
 ~Locker ()
 Destructor. Unlocks the mutex.
 
 Locker (const Locker &)=delete
 
Lockeroperator= (const Locker &)=delete
 
 Locker (Locker &&)=delete
 
Lockeroperator= (Locker &&)=delete
 

Detailed Description

RAII scoped locker for Mutex.

Acquires the mutex on construction and releases it on destruction. Non-copyable and non-movable.

Constructor & Destructor Documentation

◆ Locker()

Mutex::Locker::Locker ( Mutex mutex)
inline

Constructs a Locker and locks the given mutex.

Parameters
mutexThe mutex to lock.

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