|
libmizu 0.2.0
Lock-free shared-memory IPC at thread speed in C11
|
Worker registry slot: two 128-byte spans, with the admin and owner-written fields on the first and the thief-CAS'd deque_top apart on the second, so no span carries two processes' stores. 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] |
| uint8_t | pad1 [64] |
| deque_top off the owner's span | |
| int64_t | deque_top |
| uint64_t | live_dev |
| The liveness-file identity (device, inode), written once at join before LIVE; a by-path prober identity-checks the file against it. | |
| uint64_t | live_ino |
| liveness-file inode | |
| uint64_t | stat_tasks |
| uint64_t | stat_steals |
| uint64_t | stat_inj |
| uint64_t | stat_parks |
| uint64_t | stat_helps |
| uint8_t | pad2 [64] |
Worker registry slot: two 128-byte spans, with the admin and owner-written fields on the first and the thief-CAS'd deque_top apart on the second, so no span carries two processes' stores.
in_flight_rs/_seq are announced before any claim and read only post-mortem by a reaper serialized by the liveness lock.
| uint64_t mizu_wk_slot_s::live_dev |
The liveness-file identity (device, inode), written once at join before LIVE; a by-path prober identity-checks the file against it.
liveness-file device