Module mock

Module mock 

Source
Expand description

Host-side mock for grafos_worker_v0.

Backed by a thread-local WorkerSlot. Tests (or the SDK’s SharedTaskletBuilder mock launch path) install a slot via with_worker_slot before calling any fb_* shim.

Structs§

WorkerSlot
State visible to a single worker lane (or the coordinator) inside the mock runtime.

Functions§

fb_barrier_wait
fb_fuel_checkpoint
Phase 48.13 W2b mock implementation of fb_fuel_checkpoint.
fb_scratch_len
fb_scratch_ptr
fb_shared_len
fb_shared_ptr
fb_tasklet_cancelled
fb_worker_count
fb_worker_index
mock_clear
Test helper: clear any installed slot.
mock_set_single_worker
Test helper: install a single-thread slot, run f, restore.
with_worker_slot
Install slot for the duration of f (this thread only).