Files
EchoionCore/include/echoion/core
faumarayandClaude Opus 4.8 ef094c0d78 Phase C: replace CommandManager's hand-rolled pool with Void ThreadPool
CommandManager dispatched async commands through a bespoke pool — a jthread
vector, a CommandTask queue, a mutex/condition_variable, and a manual
drain-on-shutdown loop. Replace it with a Void::Concurrency::ThreadPool:

- startThreadPool() builds the pool at THREAD_POOL_SIZE; shutdown() flips
  the accept flag and resets the pool (~ThreadPool drains queued commands
  then joins — the same shutdown semantics the manual loop had).
- dispatch() submits the CommandTask lambda straight to the pool instead of
  enqueuing + notifying; executeCommandAsync already swallows exceptions, so
  the discarded future is safe.
- processCommandQueue() and the queue/cv/worker members are gone.

Build green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 03:12:10 +03:00
..