|
SuperTinyKernel™ RTOS 1.08.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
Thread-local storage (TLS) and per-task semaphores. More...
Go to the source code of this file.
Classes | |
| struct | MyTls |
| class | MyTask< _AccessMode > |
Enumerations | |
| enum | { TASK_STACK_SIZE = 256 } |
Functions | |
| static void | SwitchOnLED () |
| void | RunExample () |
Variables | |
| static stk::sync::Semaphore | g_Sem0 (1) |
| static stk::sync::Semaphore | g_Sem1 (0) |
| static stk::sync::Semaphore | g_Sem2 (0) |
| static stk::sync::Semaphore | g_Sem3 (0) |
| static stk::sync::Semaphore *const | g_Sem [LED_MAX] |
| static stk::Ticks | g_Timeline = 0 |
Thread-local storage (TLS) and per-task semaphores.
Definition in file tls/example.cpp.
| anonymous enum |
| Enumerator | |
|---|---|
| TASK_STACK_SIZE | |
Definition at line 71 of file tls/example.cpp.
| void RunExample | ( | void | ) |
Definition at line 122 of file tls/example.cpp.
References bsp::Led::InitAll(), stk::KERNEL_STATIC, stk::KERNEL_SYNC, stk::KERNEL_TICKLESS, and STK_ASSERT.
Referenced by main().
|
static |
Definition at line 59 of file tls/example.cpp.
References bsp::Led::SwitchOnExclusive().
Referenced by LedTask< _Priority, _AccessMode >::Run(), and MyTask< _AccessMode >::Run().
|
static |
Definition at line 44 of file tls/example.cpp.
Referenced by MyTask< _AccessMode >::Run().
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 50 of file tls/example.cpp.
Referenced by MyTask< _AccessMode >::Run().