27 Mutex(
const char* name =
nullptr);
48 explicit Lock(
const Mutex& mutex,
bool try_lock =
false);
70 explicit operator bool()
const
97 ::pthread_mutex_t _mutex{0};
112 bool isMutexDestroyed();
122 bool acquire(
bool try_lock,
const TimeSpec& timeout);
Wrapper for the pthread_cond mechanism.
Definition Condition.h:16
Locking class for easy locking and unlocking by destructor.
Definition Mutex.h:43
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.
Lightweight intra process thread synchronization.
Definition Mutex.h:17
Mutex(const char *name=nullptr)
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