Utility class to acquire a lock that is released by the destructor. More...
#include <lock.h>
Public Member Functions | |
Block (Recursive_lock *lock=0) | |
Constructor. More... | |
~Block () | |
Destructor. More... | |
void | set (Recursive_lock *lock) |
Acquires a lock. More... | |
bool | try_set (Recursive_lock *lock) |
Tries to acquire a lock. More... | |
void | release () |
Releases the lock. More... | |
Utility class to acquire a lock that is released by the destructor.