![]() |
SuperTinyKernel™ RTOS 1.08.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
Helper for casting list entries to concrete (parent) types. More...
#include <stk_linked_list.h>
Static Public Member Functions | |
| template<typename TTargetType, typename TSourceType> | |
| static __stk_forceinline TTargetType * | ListEntryToParent (TSourceType *const lentry) |
| Safely casts an intrusive list entry to its concrete parent container object type. | |
Helper for casting list entries to concrete (parent) types.
Definition at line 458 of file stk_linked_list.h.
|
inlinestatic |
Safely casts an intrusive list entry to its concrete parent container object type.
| [in] | lentry | Pointer to the intrusive list entry. Must be a valid pointer or nullptr. |
TargetType, or nullptr if the input entry was nullptr. Definition at line 465 of file stk_linked_list.h.
References __stk_forceinline, and STK_STATIC_ASSERT_N.
Referenced by stk::Kernel< stk::KERNEL_DYNAMIC|stk::KERNEL_SYNC|stk::KERNEL_TICKLESS,(16U), stk::SwitchStrategyFP32, stk::PlatformDefault >::FetchNextEvent(), stk::ISyncObject::FindWeightHigherThan(), stk::Kernel< stk::KERNEL_DYNAMIC|stk::KERNEL_SYNC|stk::KERNEL_TICKLESS,(16U), stk::SwitchStrategyFP32, stk::PlatformDefault >::OnStart(), stk::Kernel< stk::KERNEL_DYNAMIC|stk::KERNEL_SYNC|stk::KERNEL_TICKLESS,(16U), stk::SwitchStrategyFP32, stk::PlatformDefault >::StateSleep(), stk::ISyncObject::Tick(), stk::sync::Mutex::Unlock(), stk::Kernel< stk::KERNEL_DYNAMIC|stk::KERNEL_SYNC|stk::KERNEL_TICKLESS,(16U), stk::SwitchStrategyFP32, stk::PlatformDefault >::UpdateSyncObjects(), stk::time::TimerHost::UpdateTime(), stk::ISyncObject::WakeAll(), and stk::ISyncObject::WakeOne().