![]() |
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 | |
| ScopedLock (const ScopedLock &)=delete | |
| ScopedLock & | operator= (const ScopedLock &)=delete |
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 493 of file stk_arch.h.
|
inlineexplicit |
Enter the critical section.
Definition at line 498 of file stk_arch.h.
References stk::hw::CriticalSection::CriticalSection(), stk::hw::CriticalSection::Enter(), and m_ses.
Referenced by operator=().
|
inline |
Exit the critical section.
Definition at line 503 of file stk_arch.h.
References stk::hw::CriticalSection::Exit(), and m_ses.
|
privatedelete |
|
privatedelete |
|
private |
Definition at line 510 of file stk_arch.h.
Referenced by ScopedLock(), and ~ScopedLock().