Skip to main content

place

Function place 

Source
pub fn place(
    max_sched_priority: i64,
    set_task_config: impl FnOnce(u32) -> bool,
    println: impl FnMut(Arguments<'_>),
) -> Option<u32>
Expand description

Place the transport tasks at TRANSPORT_BAND_FLOOR when any sched task asks for a real-time priority (max_sched_priority > 0); with none, every thread is SCHED_OTHER and there is nothing to sit above.

set_task_config(priority) applies it and returns whether a transport was there to take it (false: no zenoh backend linked, which is not a degradation — such an image has no transport tasks to place). Best effort like every priority on this port: without CAP_SYS_NICE the attribute is ignored at spawn. Returns the priority placed.