Expand description
Synchronization mode handoff cross-checks for the Hurray C ABI.
Before consuming a buffer produced by another party, the consumer MUST
call the appropriate handoff function to verify that the buffer’s declared
SyncMode matches the payload they are providing. This prevents silent
race conditions caused by producer/consumer sync-mode disagreement.
See docs/spec/buffer-protocol.md § Synchronization Mode and ADR-018.
Structs§
- Hurray
Sync Consumer Stream Payload - Payload for the
ConsumerStreamsync mode handoff. - Hurray
Sync Event Payload - Payload for the
Eventsync mode handoff.
Functions§
- hurray_
buffer_ ⚠handoff_ consumer_ stream - Validates a
ConsumerStream-mode sync handoff from producer to consumer. - hurray_
buffer_ ⚠handoff_ event - Validates an
Event-mode sync handoff from producer to consumer. - hurray_
buffer_ ⚠handoff_ producer_ synced - Validates a
ProducerSynced-mode sync handoff.
Type Aliases§
- Hurray
Event Release Fn - Optional callback invoked to release a sync event handle.