openDAQ
Open data acquisition platform
MutexPtr Class Reference

Mutex wrapper interface. Wraps a std::mutex object. More...

Inherits ObjectPtr< IMutex >.

Detailed Description

Mutex wrapper interface. Wraps a std::mutex object.

Public Member Functions

void lock () const
 Locks the mutex; blocking call.
 
daq::Bool tryLock () const
 Tries to lock the mutex and returns true if successful; non-blocking call.
 
void unlock () const
 Unlocks the mutex.