libmizu 0.0.1
Lock-free shared-memory IPC
Loading...
Searching...
No Matches
Data Fields
mizu_entry_hdr_s Struct Reference

Injection ring / deque entry header; payload framing at offset 24, payload bytes at 40. More...

#include <mizu.h>

Collaboration diagram for mizu_entry_hdr_s:
Collaboration graph
[legend]

Data Fields

uint64_t task_id
 submitter slot << 48 | counter; debug only
 
uint64_t rs_seq
 result-slot incarnation at submit
 
uint32_t rs_index
 
uint16_t submitter_slot
 
uint16_t flags
 
mizu_slot_hdr ph
 

Detailed Description

Injection ring / deque entry header; payload framing at offset 24, payload bytes at 40.

flags bit 0 is MIZU_ENTRY_RUNNER; bits 1-2 are reserved for a future language tag (homogeneous pools in v1). rs_seq binds the entry to its result slot's incarnation (the sequence at submit): a claimed entry whose stamp no longer matches the slot is a zombie left by a dead claimant and never executes.


The documentation for this struct was generated from the following file: