~ThreadPool 期间可能出现死锁

作者: ShunlongHu创建于 2024年5月24日更新于 2024年12月10日

condition.notify_all(); 应该放在 unique_lock 的括号中。这样可以确保在调用 notify_all 命令时,所有工作线程都在等待或执行。

内容来源: progschj/ThreadPool