![]() |
SuperTinyKernel™ RTOS 1.05.3
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
Tests that Wait() returns false within the expected time when no notification arrives. More...
Public Types | |
| enum | |
Public Member Functions | |
| TimeoutExpiresTask (uint8_t task_id, int32_t) | |
| Word * | GetStack () const |
| Get pointer to the stack memory. | |
| size_t | GetStackSize () const |
| Get number of elements of the stack memory array. | |
| size_t | GetStackSizeBytes () const |
| Get size of the memory in bytes. | |
| EAccessMode | GetAccessMode () const |
| Get hardware access mode of the user task. | |
| virtual void | OnDeadlineMissed (uint32_t duration) |
| Default no-op handler. Override in subclass to log or handle missed deadlines. | |
| virtual int32_t | GetWeight () const |
| Default weight of 1. Override in subclass if custom scheduling weight is needed. | |
| virtual TId | GetId () const |
| Get object's own address as its Id. Unique per task instance, requires no manual assignment. | |
| virtual const char * | GetTraceName () const |
| Override in subclass to supply a name for SEGGER SystemView tracing. Returns NULL by default. | |
Private Member Functions | |
| void | Run () |
| Entry point of the user task. | |
Private Attributes | |
| uint8_t | m_task_id |
| StackMemoryDef< _StackSize >::Type | m_stack |
| Stack memory region, 16-byte aligned. | |
Tests that Wait() returns false within the expected time when no notification arrives.
Definition at line 176 of file test_condvar.cpp.
|
inherited |
Definition at line 52 of file stk_helper.h.
|
inline |
Definition at line 181 of file test_condvar.cpp.
References m_task_id.
|
inlinevirtualinherited |
Get hardware access mode of the user task.
Implements stk::ITask.
Definition at line 57 of file stk_helper.h.
Get object's own address as its Id. Unique per task instance, requires no manual assignment.
Implements stk::ITask.
Definition at line 72 of file stk_helper.h.
Get pointer to the stack memory.
Implements stk::IStackMemory.
Definition at line 54 of file stk_helper.h.
|
inlinevirtualinherited |
Get number of elements of the stack memory array.
Implements stk::IStackMemory.
Definition at line 55 of file stk_helper.h.
|
inlinevirtualinherited |
Get size of the memory in bytes.
Implements stk::IStackMemory.
Definition at line 56 of file stk_helper.h.
|
inlinevirtualinherited |
Override in subclass to supply a name for SEGGER SystemView tracing. Returns NULL by default.
Implements stk::ITask.
Definition at line 76 of file stk_helper.h.
|
inlinevirtualinherited |
Default weight of 1. Override in subclass if custom scheduling weight is needed.
Implements stk::ITask.
Definition at line 68 of file stk_helper.h.
|
inlinevirtualinherited |
Default no-op handler. Override in subclass to log or handle missed deadlines.
Implements stk::ITask.
Definition at line 62 of file stk_helper.h.
|
inlineprivatevirtual |
Entry point of the user task.
Kernel is configured as KERNEL_STATIC, the body must contain an infinite loop. Implements stk::ITask.
Definition at line 185 of file test_condvar.cpp.
References _STK_CV_TEST_SHORT_SLEEP, _STK_CV_TEST_TIMEOUT, stk::test::condvar::g_SharedCounter, stk::test::condvar::g_TestCond, stk::test::condvar::g_TestMutex, stk::test::condvar::g_TestResult, stk::GetTimeNowMs(), m_task_id, and stk::Sleep().
|
privateinherited |
Stack memory region, 16-byte aligned.
Definition at line 98 of file stk_helper.h.
|
private |
Definition at line 178 of file test_condvar.cpp.
Referenced by Run(), and TimeoutExpiresTask().