libmizu 0.2.0
Lock-free shared-memory IPC at thread speed in C11
Loading...
Searching...
No Matches
mizu_sub_slot_s Struct Reference

Submitter registry slot: one 128-byte span per submitter. More...

#include <mizu.h>

Data Fields

int32_t status
 MIZU_SUB_*.
uint32_t park_epoch
int64_t pid
uint32_t rs_start
 The static result-slot partition: result_slots / max_submitters slots per submitter, slot j's starting at j times that count.
uint32_t rs_count
 slots in the partition
uint64_t live_dev
 liveness-file device (as the worker's)
uint64_t live_ino
 liveness-file inode
uint64_t stat_spills
uint64_t stat_spill_reuse
uint32_t notify
 the submitter's notify-arm bitmask (MIZU_WAIT_*; the coalescing word the first publisher per burst clears as it signals the submitter's endpoint)
uint8_t pad [68]

Detailed Description

Submitter registry slot: one 128-byte span per submitter.

stat_spills is a per-checkout RMW and notify the publishers' clear, so adjacent submitters must not share one.

Field Documentation

◆ rs_start

uint32_t mizu_sub_slot_s::rs_start

The static result-slot partition: result_slots / max_submitters slots per submitter, slot j's starting at j times that count.

Written ahead of the LIVE transition, so a reader validates any non-FREE slot's pair against the formula. first result slot of the partition


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