|
| class | Barrier |
| | Cyclic barrier that blocks a fixed-size group of tasks until all of them have arrived. More...
|
| class | ScopedCriticalSection |
| | RAII-style low-level synchronization primitive for atomic code execution. Used as building brick for other stk::sync classes, consider using hw::CriticalSection::ScopedLock implementation instead. More...
|
| class | ConditionVariable |
| | Condition Variable primitive for signaling between tasks based on specific predicates. More...
|
| class | Event |
| | Binary synchronization event (signaled / non-signaled) primitive. More...
|
| class | EventFlagsT |
| | Event flags group for multi-flag synchronization between tasks, with a selectable flags word type. More...
|
| class | FastMutex |
| | Non-recursive (binary) mutex primitive with ownership tracking. More...
|
| class | MessageQueue |
| | Fixed-capacity, fixed-message-size FIFO queue for inter-task communication. More...
|
| class | MessageQueueT |
| | Fixed-capacity, fixed-message-size FIFO queue with internal storage. More...
|
| class | Mutex |
| | Recursive mutex primitive that allows the same thread to acquire the lock multiple times. More...
|
| class | Pipe |
| | Thread-safe FIFO communication pipe for inter-task data passing. More...
|
| class | PipeT |
| | Thread-safe, type-safe FIFO communication pipe with internal storage. More...
|
| class | RWMutex |
| | Reader-Writer Lock synchronization primitive for non-recursive shared and exclusive access. More...
|
| class | SemaphoreT |
| | Counting semaphore primitive for resource management and signaling, with a selectable counter type. More...
|
| class | SpinLock |
| | Recursive spinlock. More...
|
Synchronization primitives for task coordination and resource protection.
ISR SAFETY GUIDELINES:
Special care must be taken when calling synchronization methods from within an Interrupt Service Routine (ISR).
As a general rule, methods that can cause the caller to block or sleep are STRICTLY FORBIDDEN in ISRs.
| Primitive | ISR Safe Methods |
| Event | Set(), Pulse(), Reset(), TryWait() |
| EventFlagsT | Set(), Clear(), And(), Get(), TryWait(), Wait(NO_WAIT), TryWaitEx(), WaitEx(NO_WAIT), Sync(NO_WAIT) |
| Semaphore | Signal(), TrySignal(), TrySignal(ceiling), TryWait(), Wait(NO_WAIT), WaitEx(NO_WAIT), GetCount() |
| SpinLock | None |
| Mutex | None |
| FastMutex | None |
| RWMutex | None |
| ConditionVariable | NotifyOne(), NotifyAll(), Wait(NO_WAIT) |
| Barrier | None |
| Pipe | Write(NO_WAIT), WriteBulk(NO_WAIT), TryWrite(), TryWriteBulk(), Read(NO_WAIT), ReadBulk(NO_WAIT), TryRead(), TryReadBulk() |
| MessageQueue | Put(NO_WAIT), TryPut(), Get(NO_WAIT), TryGet(), Reset() |
NOTE:
WARNING:
- Calling a blocking method from an ISR will lead to undefined behavior, memory corruption, or a deadlock. In debug build STK_ASSERT will break code execution if ineligible for ISR method is called.