Files
Library/include
faumarayandClaude Fable 5 c6b7306614 FSM (5): multi-waiter mailbox (engine foundation)
ExecutionContext had a single Waiter slot, so only one coroutine could park
on events at a time. Replace it with a FIFO list of waiters: set_waiter
appends (each with a unique id + its own timer); deliver routes an event to
the first parked waiter that wants its type, else buffers; a timeout fires
only its own waiter (found by id). Single-consumer invariant unchanged — all
mailbox mutation stays on the consumer thread.

Pure refactor (no API change); unblocks parallel regions and deferred
events. 995 tests (992 green, 3 skipped), ASan clean, -Werror clean.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-15 01:24:02 +03:00
..