Skip to main content

hurray_buffer_handoff_producer_synced

Function hurray_buffer_handoff_producer_synced 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn hurray_buffer_handoff_producer_synced( buffer: *const HurrayBuffer, ) -> HurrayStatus
Expand description

Validates a ProducerSynced-mode sync handoff.

Checks that the buffer’s declared sync mode is SyncMode::ProducerSynced. This mode requires no payload — calling this function is itself the assertion that the producer has already issued a host-side wait.

Returns HURRAY_OK if the buffer is ProducerSynced; HURRAY_ERR_SYNC_MODE_MISMATCH otherwise.

§Safety

buffer MUST be a valid, non-null pointer to a live HurrayBuffer.