ThreadPool
ThreadPool copied to clipboard
Why not use std::atomic<bool> instead of bool?
The member variable stop
You do not need atomic access there because you still have to cover its use with mutex when you are using the conditional variable.
oh , I see your answer here.