Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
LockGuard Class Reference
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. | |
~LockGuard () | |
Destruct the lock and release the inner mutex. |
Detailed Description
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.
Constructor & Destructor Documentation
LockGuard | ( | rtos::Mutex & | mutex ) |
Construct a LockGuard instance and ackire ownership of mutex in input.
- Parameters:
-
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 41 of file LockGuard.h.
Generated on Tue Jul 12 2022 14:26:47 by
