![]() |
SuperTinyKernel™ RTOS 1.05.3
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
Interface for mutex synchronization primitive. More...
#include <stk_common.h>
Classes | |
| class | ScopedLock |
| Locks bound mutex within a scope of execution. Ensures the mutex is always unlocked when leaving the scope, even when exceptions are thrown. More... | |
Public Member Functions | |
| virtual void | Lock ()=0 |
| Lock the mutex. | |
| virtual void | Unlock ()=0 |
| Unlock the mutex. | |
Interface for mutex synchronization primitive.
Definition at line 380 of file stk_common.h.
|
pure virtual |
Lock the mutex.
Implemented in stk::sync::Mutex, stk::sync::RWMutex, stk::sync::ScopedCriticalSection, stk::sync::SpinLock, and stk::test::MutexMock.
Referenced by stk::Kernel< TMode, TSize, TStrategy, TPlatform >::OnTaskWait().
|
pure virtual |
Unlock the mutex.
Implemented in stk::sync::Mutex, stk::sync::RWMutex, stk::sync::ScopedCriticalSection, stk::sync::SpinLock, and stk::test::MutexMock.
Referenced by stk::Kernel< TMode, TSize, TStrategy, TPlatform >::OnTaskWait().