Skip to main content

Module work_stealing

Module work_stealing 

Source
Expand description

Opt-in work-stealing layer.

StealableQueue wraps a LocalQueue and exposes a steal_from method that lets another worker grab half of its tasks. This module is intentionally minimal — the Chase-Lev deque optimisation is deferred to a later phase.

For the current single-threaded executor the stealing path is never hot, so correctness and clarity take priority over lock-free performance.