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

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 [8]
 occupancy indexed by MIZU_RS_*
uint32_t inj_queued [64]
 unclaimed injection entries
int32_t shutdown

Detailed Description

Snapshots.

info 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. The caller stamps size = sizeof of the struct it passes (info_get / dump_get refuse a mismatch with MIZU_ERR: the stamp versions the struct). 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.


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