Skip to main content

mbarrier_arrival_count

Function mbarrier_arrival_count 

Source
pub const fn mbarrier_arrival_count(stages: u32) -> u32
Expand description

Number of mbarrier arrival slots needed to fence a pipelined producer/consumer with the given stages. Matches the formula 2 * stages used by stage-balanced double-buffer kernels.