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

Batch-sizing state: process-private, never wire state, reset at each run's first-call CLAIM CAS. More...

#include <mizu_ext.h>

Data Fields

int32_t run_r
 ordinal whose ramp this is (-1 = none)
uint32_t run_gen
uint64_t k
 current batch size, morsels
uint64_t k_last
 morsels issued last transition
double t_last
 mizu_now() at the last issue
double cost
 est.
int skip
 last interval contained a help: no update

Detailed Description

Batch-sizing state: process-private, never wire state, reset at each run's first-call CLAIM CAS.

The binding embeds one per map context; a doorbell help that claims a queued runner of the same map aliases it (the cost is a mis-sized batch or a re-ramp on resume, which is harmless).

Field Documentation

◆ cost

double mizu_morsel_sizer_s::cost

est.

seconds per morsel (0 = unknown)


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