Skip to main content

Module workers

Module workers 

Source
Expand description

Worker start / fail / drain / handover with generation fencing (E10.3).

Handover temporarily double-reserves the cell bytes on the shared HostAdmission, then releases the old slot. Cancel during drain returns QdnfError::Cancelled and leaves the old reservation until release_worker. Stale generation cannot complete handover.

Structs§

WorkerFence
Exclusive writer fence. Not Copy: two live writers are QdnfError::Conflict.

Functions§

cancel_worker
Cancel during drain (E03.5). Old reservation remains until release_worker.
drain_and_handover
Drain old and hand exclusive ownership to new.
fail_worker
Mark failure and begin drain. Vacant fence → QdnfError::Incomplete.
release_worker
Release the worker cell on success, error, cancel, or unwind (E03.5).
start_worker
Admit a cell and take exclusive writer ownership.