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

Worker registry slot: two cache lines — admin + owner-written fields on line 0, thief-CAS'd deque_top apart on line 1. More...

#include <mizu.h>

Data Fields

int32_t status
 MIZU_WK_*.
 
int32_t id
 
int64_t pid
 informational; never a liveness signal
 
int32_t park_state
 MIZU_WPK_*.
 
uint32_t park_epoch
 
int64_t deque_buf_off
 
int32_t deque_cap
 
int32_t in_flight_rs
 
uint64_t in_flight_seq
 
int64_t deque_bottom
 
int32_t retire
 
uint8_t pad0 [4]
 
int64_t deque_top
 
uint64_t live_dev
 liveness-file identity, written once
 
uint64_t live_ino
 at join before LIVE
 
uint64_t stat_tasks
 
uint64_t stat_steals
 
uint64_t stat_inj
 
uint64_t stat_parks
 
uint64_t stat_helps
 

Detailed Description

Worker registry slot: two cache lines — admin + owner-written fields on line 0, thief-CAS'd deque_top apart on line 1.

in_flight_rs/_seq are announced before any claim and read only post-mortem by a reaper serialized by the liveness lock.


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