![]() |
SuperTinyKernel™ RTOS 1.05.3
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
Task mock for SwitchStrategySmoothWeightedRoundRobin and similar algorithms. More...
#include <stktest.h>
Public Types | |
| enum | |
Public Member Functions | |
| 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) |
| Hard Real-Time mode is unsupported for weighted tasks. Triggers an assertion if called. | |
| virtual int32_t | GetWeight () const |
| Returns the compile-time weight _Weight. | |
| 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 | |
| StackMemoryDef< _StackSize >::Type | m_stack |
| Stack memory region, 16-byte aligned. | |
Task mock for SwitchStrategySmoothWeightedRoundRobin and similar algorithms.
|
inherited |
Definition at line 119 of file stk_helper.h.
|
inlinevirtualinherited |
Get hardware access mode of the user task.
Implements stk::ITask.
Definition at line 124 of file stk_helper.h.
|
inlinevirtualinherited |
Get object's own address as its Id. Unique per task instance, requires no manual assignment.
Implements stk::ITask.
Definition at line 137 of file stk_helper.h.
|
inlinevirtualinherited |
Get pointer to the stack memory.
Implements stk::IStackMemory.
Definition at line 121 of file stk_helper.h.
|
inlinevirtualinherited |
Get number of elements of the stack memory array.
Implements stk::IStackMemory.
Definition at line 122 of file stk_helper.h.
|
inlinevirtualinherited |
Get size of the memory in bytes.
Implements stk::IStackMemory.
Definition at line 123 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 141 of file stk_helper.h.
|
inlinevirtualinherited |
Returns the compile-time weight _Weight.
Implements stk::ITask.
Definition at line 133 of file stk_helper.h.
|
inlinevirtualinherited |
Hard Real-Time mode is unsupported for weighted tasks. Triggers an assertion if called.
Implements stk::ITask.
Definition at line 129 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 359 of file stktest.h.
|
privateinherited |
Stack memory region, 16-byte aligned.
Definition at line 162 of file stk_helper.h.