SuperTinyKernel™ RTOS 1.08.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
Loading...
Searching...
No Matches
stk::detail Namespace Reference

Internal utility namespace containing data structure helpers (linked lists, etc.) used by the kernel implementation. Not part of the public user API. More...

Classes

class  DListHead
 Intrusive doubly-linked list container. Manages a collection of DListEntry nodes embedded in host objects of type T. More...
class  DListEntry
 Intrusive doubly-linked list node. Embed this as a base class in any object (T) that needs to participate in a DListHead list. More...
struct  DListCast
 Helper for casting list entries to concrete (parent) types. More...

Functions

template<bool TicklessMode>
Timeout GetInitialSleepTicks ()
template<>
Timeout GetInitialSleepTicks< true > ()
template<>
Timeout GetInitialSleepTicks< false > ()

Detailed Description

Internal utility namespace containing data structure helpers (linked lists, etc.) used by the kernel implementation. Not part of the public user API.

Function Documentation

◆ GetInitialSleepTicks()

template<bool TicklessMode>
Timeout stk::detail::GetInitialSleepTicks ( )
inline

References __stk_forceinline.

Referenced by stk::Kernel< TMode, TSize, TStrategy, TPlatform >::UpdateTaskState().

Here is the caller graph for this function:

◆ GetInitialSleepTicks< false >()

template<>
Timeout stk::detail::GetInitialSleepTicks< false > ( )
inline

Definition at line 44 of file stk.h.

44{ return 1; }

References __stk_forceinline.

◆ GetInitialSleepTicks< true >()

template<>
Timeout stk::detail::GetInitialSleepTicks< true > ( )
inline

Definition at line 43 of file stk.h.

43{ return STK_TICKLESS_TICKS_MAX; }
#define STK_TICKLESS_TICKS_MAX
Maximum number of kernel ticks the hardware timer may be suppressed in one tickless idle interval whe...
Definition stk_defs.h:79

References __stk_forceinline, and STK_TICKLESS_TICKS_MAX.