![]() |
SuperTinyKernel™ RTOS 1.08.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
RAII instance 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) | |
Private Attributes | |
| CriticalSection::Session | m_ses |
RAII instance that enters the critical section on construction and exits it on destruction.
Usage example:
Definition at line 385 of file stk_arch.h.
|
inlineexplicit |
Enter the critical section.
Definition at line 390 of file stk_arch.h.
References stk::hw::CriticalSection::CriticalSection(), stk::hw::CriticalSection::Enter(), and m_ses.
Referenced by STK_NONCOPYABLE_CLASS().
|
inline |
Exit the critical section.
Definition at line 395 of file stk_arch.h.
References stk::hw::CriticalSection::Exit(), and m_ses.
|
private |
|
private |
Definition at line 402 of file stk_arch.h.
Referenced by ScopedLock(), and ~ScopedLock().