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

Worker-death lost set: issued = [0, bound), lost = issued minus the union of the collected batch histories. More...

#include <mizu_ext.h>

Data Fields

uint64_t lo
uint64_t hi

Detailed Description

Worker-death lost set: issued = [0, bound), lost = issued minus the union of the collected batch histories.

A batch in no history was issued but never completed (its claimant died, or the map fn errored mid-batch), and a dead runner's whole history lands here too, since it publishes only at exhaustion. spans (caller-assembled from the histories, element space, lo <= hi) is sorted in place; the gaps (at most n + 1) land in out as 0-based half-open ranges; returns the gap count.


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