Ardour  9.2-79-gba93f2fe52
PBD::Mutex Class Reference

#include <mutex.h>

Classes

class  Lock
 

Public Types

enum  LockFlags { Acquire , NotLock , TryLock }
 

Public Member Functions

 Mutex ()
 
void lock ()
 
bool trylock ()
 
void unlock ()
 

Private Member Functions

 Mutex (Mutex const &)=delete
 
Mutexoperator= (Mutex const &)=delete
 

Private Attributes

std::mutex _mutex
 

Friends

class Cond
 

Detailed Description

Basic wrapper around std::mutex

Almost equivalent to using Mutex = std::mutex

Definition at line 34 of file mutex.h.

Member Enumeration Documentation

◆ LockFlags

Enumerator
Acquire 
NotLock 
TryLock 

Definition at line 37 of file mutex.h.

Constructor & Destructor Documentation

◆ Mutex() [1/2]

PBD::Mutex::Mutex ( )

◆ Mutex() [2/2]

PBD::Mutex::Mutex ( Mutex const &  )
privatedelete

Member Function Documentation

◆ lock()

void PBD::Mutex::lock ( )
inline

Definition at line 46 of file mutex.h.

◆ operator=()

Mutex& PBD::Mutex::operator= ( Mutex const &  )
privatedelete

◆ trylock()

bool PBD::Mutex::trylock ( )
inline

Definition at line 51 of file mutex.h.

◆ unlock()

void PBD::Mutex::unlock ( )
inline

Definition at line 56 of file mutex.h.

Friends And Related Function Documentation

◆ Cond

friend class Cond
friend

Definition at line 62 of file mutex.h.

Member Data Documentation

◆ _mutex

std::mutex PBD::Mutex::_mutex
private

Definition at line 66 of file mutex.h.


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