RAII mutex locker. More...
#include <LockGuard.h>
Public Member Functions | |
LockGuard (rtos::Mutex &mutex) | |
Construct a LockGuard instance and ackire ownership of mutex in input. More... | |
~LockGuard () | |
Destruct the lock and release the inner mutex. More... | |
RAII mutex locker.
The mutex pass in the constructor will be locked for the lifetime of the LockGuard instance.
Definition at line 28 of file LockGuard.h.
LockGuard | ( | rtos::Mutex & | mutex | ) |
Construct a LockGuard instance and ackire ownership of mutex in input.
mutex | The mutex to ackire ownership of. |
Definition at line 34 of file LockGuard.h.
~LockGuard | ( | ) |
Destruct the lock and release the inner mutex.
Definition at line 42 of file LockGuard.h.