61 template <
typename T,
size_t N>
friend class PipeT;
#define STK_VIRT_DTOR
Makes destructors virtual and compliant to strict rules if STK_STRICT_COMPLIANCY=0.
Contains helper implementations which simplify user-side code.
Namespace of STK package.
Hardware Abstraction Layer (HAL) for architecture-specific operations.
Synchronization primitives for task coordination and resource protection.
static Session Enter(const Session ses=DEFAULT_SESSION)
Enter a critical section.
uint8_t Session
Opaque session token returned by Enter() and consumed by Exit().
static void Exit(const Session ses=DEFAULT_SESSION)
Exit a critical section.
Interface for mutex synchronization primitive.
ScopedCriticalSection()
Enters critical section.
hw::CriticalSection::Session m_ses
current session of hw::CriticalSection
STK_VIRT_DTOR ~ScopedCriticalSection()
Exits critical section.
void Unlock() override
Unlock the mutex.
void Lock() override
Lock the mutex.
STK_NONCOPYABLE_CLASS(ScopedCriticalSection)