Expand description
Where a hosted POSIX runner places zenoh-pico’s transport tasks, one
decision for both Linux runners.
Where a hosted POSIX runner places zenoh-pico’s transport tasks: the floor
of the priority plan’s reserved.transport band
(packages/boards/linux/nros-board.toml, [90, 99]), above every sched task.
ONE decision for both Linux runners, the Rust board’s (nros-board-linux)
and the C/C++ one (nros-cpp). Each reaches zenoh-pico’s
zpico_set_task_config its own way, because only the Rust board knows at
compile time whether the zenoh backend is linked, so the CALL is the
caller’s and everything else is here.
Why it is needed at all: a sched task with a priority runs SCHED_FIFO, and
a SCHED_FIFO thread outranks every SCHED_OTHER thread unconditionally.
A transport left on SCHED_OTHER is preempted by the app that publishes
over it, always. zpico_set_task_config is a process-wide default read when
the session opens and creates the transport tasks, so this must run BEFORE
the open; after it, it changes nothing.
Constants§
- TRANSPORT_
BAND_ FLOOR - The floor of the plan’s
reserved.transportband. Cross-checked against the plan bycheck-sched-task-priority-plan, so the two cannot drift.
Functions§
- place
- Place the transport tasks at
TRANSPORT_BAND_FLOORwhen any sched task asks for a real-time priority (max_sched_priority > 0); with none, every thread isSCHED_OTHERand there is nothing to sit above.