Files
EchoionCore/include
faumarayandClaude Opus 4.8 da708fa9bb Phase C: replace YtDlpManager's hand-rolled pool with Void ThreadPool
YtDlpManager carried a bespoke worker pool — a jthread vector, a
packaged_task queue, and a mutex/condition_variable/stop-flag loop. Swap
all of it for a single Void::Concurrency::ThreadPool (held by unique_ptr so
setThreadPoolSize can recreate it):

- startThreadPool() constructs the pool at the (auto-adjusted) size;
  stopThreadPool() resets it (the destructor drains and joins).
- executeAsync() submits to the pool under mutex_ (mutually exclusive with
  start/stop), with a synchronous fallback if called before start.
- workerThread() and the taskQueue_/taskCv_/taskMutex_/stopThreads_ members
  are gone.

Behaviorally equivalent (bounded yt-dlp concurrency, same std::future
results) with far less concurrency code to own. Build green.

The init-time "update yt-dlp in background" detached thread is left as-is:
it's a one-shot fired before the pool exists.

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