An wrapper class for perform pthread_mutex_trylock/unlock. More...
#include <util.h>
Public Member Functions | |
bool | isLocked () const |
Has a mutex lock being acquired? Returns true if yes, otherwise false. More... | |
softLock (pthread_mutex_t *lk) | |
Constructor. | |
~softLock () | |
Destructor. | |
An wrapper class for perform pthread_mutex_trylock/unlock.
It does not use ibis::util::logMessage.
|
inline |
Has a mutex lock being acquired? Returns true if yes, otherwise false.