38 #ifndef OS_MUTEXLOCK_HPP 39 #define OS_MUTEXLOCK_HPP 98 : _mutex( &mutex), successful( mutex.trylock() )
159 : _mutex( &mutex), successful( mutex.timedlock(timeout) )
224 _mutex->unlock_shared();
double Seconds
Seconds are stored as a double precision float.
SharedMutexLock(MutexInterface &mutex)
Create a shared lock on a SharedMutex object.
virtual void lock_shared()
~MutexLock()
Remove a lock from a Mutex object.
MutexTimedLock(MutexInterface &mutex, Seconds timeout)
Lock a Mutex object, but don't block longer than a specified timeout.
~SharedMutexLock()
Remove a lock from a SharedMutex object.
bool isSuccessful()
Return if the locking of the Mutex was succesfull.
A MutexTimedLock locks a Mutex object on construction and if successful, unlocks it on destruction of...
~MutexTimedLock()
Releases, if any, a lock on the previously try-locked Mutex.
~MutexTryLock()
Releases, if any, a lock on the previously try-locked Mutex.
bool isSuccessful()
Return if the locking of the Mutex was succesfull.
SharedMutexLock is a scope based Monitor, protecting critical sections with a SharedMutex object thro...
MutexLock(MutexInterface &mutex)
Create a lock on a Mutex object.
A MutexTryLock tries to lock an Mutex object on construction and if successful, unlocks it on destruc...
MutexTryLock(MutexInterface &mutex)
Try to lock a Mutex object.
MutexInterface * _mutex
The Mutex to lock and unlock.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
MutexInterface * _mutex
The Mutex to lock and unlock.
MutexLock is a scope based Monitor, protecting critical sections with a Mutex object through locking ...