split_spsc

Function split_spsc 

Source
pub fn split_spsc(
    shared: &SharedLayoutCell,
) -> Result<(SpscSender, SpscReceiver), Error>
Expand description

Create SPSC sender/receiver handles over a shared layout.

Returns Err if the region is not initialized or is not v1-compatible.

The returned handles borrow the region by raw pointer; the caller must keep the underlying SharedLayout alive (and mapped) for as long as the handles are used.