![]() |
SuperTinyKernel™ RTOS 1.06.0
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
Locks bound mutex within a scope of execution. Ensures the mutex is always unlocked when leaving the scope, even when exceptions are thrown. More...
#include <stk_common.h>
Public Member Functions | |
| ScopedLock (IMutex &mutex) | |
| ~ScopedLock () | |
Private Member Functions | |
| ScopedLock (const ScopedLock &)=delete | |
| ScopedLock & | operator= (const ScopedLock &)=delete |
Private Attributes | |
| IMutex & | m_mutex |
Locks bound mutex within a scope of execution. Ensures the mutex is always unlocked when leaving the scope, even when exceptions are thrown.
Definition at line 446 of file stk_common.h.
|
inlineexplicit |
Definition at line 449 of file stk_common.h.
References m_mutex.
Referenced by operator=().
|
inline |
|
privatedelete |
|
privatedelete |
|
private |
Definition at line 455 of file stk_common.h.
Referenced by ScopedLock(), and ~ScopedLock().