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§
- Worker
Fence - Exclusive writer fence. Not
Copy: two live writers areQdnfError::Conflict.
Functions§
- cancel_
worker - Cancel during drain (E03.5). Old reservation remains until
release_worker. - drain_
and_ handover - Drain
oldand hand exclusive ownership tonew. - 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.