29 explicit Mutex(
const char* name =
nullptr,
bool recursive =
true);
50 explicit Lock(
const Mutex& mutex,
bool try_lock =
false);
72 explicit operator bool()
const
100 const Mutex& operator=(
const Mutex&) =
delete;
103 bool isMutexDestroyed();
109 bool acquire(
bool try_lock,
const TimeSpec& timeout);
121 ::pthread_mutex_t _mutex{};
Locking class for easy locking and unlocking by destructor.
Definition Mutex.h:45
bool acquire(bool try_lock=false, const TimeSpec &timeout={})
Returns true when if it was acquired.
Lock(const Mutex &mutex, bool try_lock=false)
Constructor.
friend class Condition
Definition Mutex.h:93
Mutex(const char *name=nullptr, bool recursive=true)
Default constructor.
::pthread_mutex_t * handle_type
Handle type.
Definition Mutex.h:22
#define _MISC_CLASS
Definition misc/global.h:40
Definition Application.h:10
Class wrapper for timespec structure to modify.
Definition TimeSpec.h:12