as already discussed here, I've written a patch that introduces a thread hierarchy feature to ChibiOS. This feature is configured via two new feature flags:
- CH_CFG_USE_THREADHIERARCHY controls whether the feature is enabled at all. When disabled, there is zero overhead to existing ChibiOS.
- CH_CFG_THREADHIERARCHY_ORDERED controls the ordering if sibling threads (children of the same parent). When disabled, children are ordered from youngest to oldest (most efficient). When enabled, children are ordered by their thread priority from high to low.
Best regards
Thomas