A mutex wrapper that provides a convenient RAII-style mechanism for releasing a mutex for the duration of a scoped block.
More...
template<class Mutex>
class lely::util::UnlockGuard< Mutex >
A mutex wrapper that provides a convenient RAII-style mechanism for releasing a mutex for the duration of a scoped block.
When an UnlockGuard
object is created, it attempts to release ownership of the mutex it is given. When control leaves the scope in which the UnlockGuard
object was created, the UnlockGuard
is destructed and the mutex reacquired.
Definition at line 57 of file mutex.hpp.