Expand description
Worker — the pinned, share-nothing thread that owns an engine, a buffer
pool, a session slab, and a handler (TH-01, MM-01).
State is split into [WorkerState] (transport) and the Handler so a
handler callback can re-enter the transport through SessionIo without
aliasing: SessionIo borrows only the transport half.
Structs§
- Worker
Config - Worker configuration knobs.
- Worker
Ctx - Immutable context handed to a
HandlerFactory::build. - Worker
Handle - Live handle to a running worker thread.
Enums§
- Worker
Cmd - Commands the control plane sends a worker.
Functions§
- spawn
- Spawns a worker thread (pinned when
config.coreis set) over a pre-bound listener.