Skip to main content

Module worker

Module worker 

Source
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§

WorkerConfig
Worker configuration knobs.
WorkerCtx
Immutable context handed to a HandlerFactory::build.
WorkerHandle
Live handle to a running worker thread.

Enums§

WorkerCmd
Commands the control plane sends a worker.

Functions§

spawn
Spawns a worker thread (pinned when config.core is set) over a pre-bound listener.