50 void unlock(
bool done =
true);
Lock a mutex in an RAII manner.
guard & operator=(guard const &rhs)=delete
The assignment operator is deleted.
~guard()
Ensure that the mutex was unlocked.
bool is_locked() const
This function returns whether the guard is current locked.
void unlock(bool done=true)
Unlock this mutex.
void lock()
Relock this mutex.
mutex * f_mutex
The mutex used by the guard class.
bool f_locked
Whether the guard is currently in effect.
guard(guard const &rhs)=delete
The copy operator is deleted.
A mutex object to ensures atomicity.