Luna::MutexGuard
A RAII wrapper for one mutex object that releases the mutex automatically when the wrapper is destructed.
class Luna::MutexGuard
Member functions
-
Constructs an empty mutex lock.
-
Constructs a mutex lock that locks the specified mutex.
-
Checks whether this mutex lock is locking one mutex.
-
Locks the specified mutex. If there is already one locked mutex, the former mutex will be unlocked firstly.
-
Unlocks the currently locking mutex. If no mutex is currently locked, this function does nothing.