rustubs::proc

Function init

Source
pub fn init()
Expand description

this is an optimization: reserve spaces in sync array to avoid runtime allocation inside of critical sections Note that the rust alloc collections doesn’t have a API like “set this vec to at least xyz capacity.” so we can only do a implicit reserve here. Meaning if this is called after the the queues receive elements, they will have more capacity than specified here. safety: this function assmues interrupt is disabled