Skip to main content

select_ready_segment_kernel

Function select_ready_segment_kernel 

Source
pub fn select_ready_segment_kernel(
    ready: SegmentGroups,
    cursor: b4,
) -> SegmentSelection
Expand description

Select one ready segment with rotating group fairness.

The lowest set bit wins within a group. After every selection the cursor advances to the following group, preventing one active bank of eight segments from monopolizing a context.