![]() |
SuperTinyKernel™ RTOS 1.06.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
RAII guard that enters the critical section on construction and exits it on destruction. More...
#include <stk_arch.h>
Public Member Functions | |
| ScopedLock () | |
| Enter the critical section. | |
| ~ScopedLock () | |
| Exit the critical section. | |
Private Member Functions | |
| STK_NONCOPYABLE_CLASS (ScopedLock) | |
RAII guard that enters the critical section on construction and exits it on destruction.
Usage example:
Definition at line 239 of file stk_arch.h.
|
inlineexplicit |
Enter the critical section.
Definition at line 244 of file stk_arch.h.
References stk::hw::CriticalSection::Enter().
Referenced by STK_NONCOPYABLE_CLASS().
|
inline |
Exit the critical section.
Definition at line 248 of file stk_arch.h.
References stk::hw::CriticalSection::Exit().
|
private |