|
libmizu 0.0.1
Lock-free shared-memory IPC
|
Snapshots. More...
#include <mizu.h>
Data Fields | |
| uint32_t | size |
| const char * | name |
| int32_t | role |
| MIZU_ROLE_*. | |
| uint32_t | max_workers |
| uint32_t | max_submitters |
| uint32_t | injection_cap |
| uint32_t | result_slots |
| uint32_t | slot_size |
| uint32_t | n_workers |
| uint32_t | n_submitters |
| uint8_t | worker_state [MIZU_MAX_WORKERS] |
| MIZU_WK_*. | |
| uint8_t | sub_state [64] |
| MIZU_SUB_*. | |
| int64_t | deque_depth [MIZU_MAX_WORKERS] |
| bottom - top | |
| uint64_t | parked_mask |
| one bit per worker slot | |
| uint32_t | tasks_by_state [7] |
| occupancy indexed by MIZU_RS_* | |
| uint32_t | inj_queued [64] |
| unclaimed injection entries | |
| int32_t | shutdown |
Snapshots.
status reads shm-resident wire state; dump adds handle-local counters (free list, open caches, collect parks) — the cold-path introspection API behind a binding's dump output. Per-slot arrays are indexed by slot; only the first n_workers / n_submitters entries are valid. The per-slot worker states are what a resize scans for free slots. All borrowed; valid until the next call.