|
Ardour
9.2-70-g6916ee188f
|
#include <mutex.h>
Public Member Functions | |
| Lock (Mutex &, Mutex::LockFlags m=Acquire) | |
| ~Lock () | |
| void | acquire () |
| bool | try_acquire () |
| void | release () |
| bool | locked () const |
Private Member Functions | |
| Lock (Mutex::Lock const &)=delete | |
| Mutex::Lock & | operator= (Mutex::Lock const &)=delete |
Private Attributes | |
| Mutex & | _mutex |
| bool | _locked |
RAII style mutex wrapper similar to std::lock_guard<std::mutex>
| PBD::Mutex::Lock::Lock | ( | Mutex & | , |
| Mutex::LockFlags | m = Acquire |
||
| ) |
| PBD::Mutex::Lock::~Lock | ( | ) |
|
privatedelete |
|
privatedelete |