CommRaT 2.0.0
C++20 Real-Time Messaging Framework
Loading...
Searching...
No Matches
commrat::Mutex Class Reference

Mutex wrapper (future: realtime mutex support) More...

#include <commrat/platform/threading.hpp>

Public Member Functions

 Mutex ()=default
 
 ~Mutex ()=default
 
 Mutex (const Mutex &)=delete
 
Mutexoperator= (const Mutex &)=delete
 
void lock ()
 
bool try_lock ()
 
void unlock ()
 
std::mutex & native ()
 

Detailed Description

Mutex wrapper (future: realtime mutex support)

Currently wraps std::mutex, future can switch to priority-inheriting mutex.

Definition at line 245 of file threading.hpp.

Constructor & Destructor Documentation

◆ Mutex() [1/2]

commrat::Mutex::Mutex ( )
default

◆ ~Mutex()

commrat::Mutex::~Mutex ( )
default

◆ Mutex() [2/2]

commrat::Mutex::Mutex ( const Mutex )
delete

Member Function Documentation

◆ lock()

void commrat::Mutex::lock ( )
inline

Definition at line 254 of file threading.hpp.

◆ native()

std::mutex & commrat::Mutex::native ( )
inline

Definition at line 258 of file threading.hpp.

◆ operator=()

Mutex & commrat::Mutex::operator= ( const Mutex )
delete

◆ try_lock()

bool commrat::Mutex::try_lock ( )
inline

Definition at line 255 of file threading.hpp.

◆ unlock()

void commrat::Mutex::unlock ( )
inline

Definition at line 256 of file threading.hpp.


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