Repository navigation
feat(rtps): menuconfig option for the transport task priority - #856
Merged
finger563 merged 1 commit intoOct 22, 2026
Merged
Conversation
…ctor task priority CONFIG_RTPS_THREAD_POOL_READER_PRIO (0 = the profile's default, so nothing changes unless it is set) overrides THREAD_POOL_READER_PRIO through a new RTPS_CFG_THREAD_POOL_READER_PRIO macro, in the same way as the capacity overrides. EsppTransport already gives that priority to its worker pool (rtps_worker_<n>) and its reactor (rtps_reactor). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
✅Static analysis result - no issues found! ✅ |
finger563
self-requested a review
October 22, 2026 05:56
finger563
approved these changes
Oct 22, 2026
This was referenced Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The transport's worker pool (
rtps_worker_<n>) and reactor (rtps_reactor) run at theprofile's fixed
THREAD_POOL_READER_PRIO(5 on ESP32). This addsCONFIG_RTPS_THREAD_POOL_READER_PRIO(RTPS -> Transport task priority (advanced)) to set it.0, the default, keeps the profile's value, so nothing changes unless it is set.It follows the same path as the capacity overrides: Kconfig →
RTPS_CFG_THREAD_POOL_READER_PRIO→ the three profile headers. The README is updated.
Motivation and Context
All RTPS sends and receives run on these tasks. A busy task of higher priority on their core
stops all traffic until it yields, and
QosBandcan't help with that. On an ESP32-P4, a UI taskat priority 20 busy for about 1 s starved an e-stop heartbeat (100 ms period, 300 ms timeout):
History overflowHow has this been tested?
rtpsexample builds for esp32 with IDF v6.0.1, both with the option at 0 and at 20.The define reaches
EsppTransport.cpponly when set. No new warnings, and clang-format isclean.
Types of changes
Checklist:
Software
🤖 Generated with Claude Code