ThreadPool
ThreadPool copied to clipboard
Thread pool function extension
Hello! I am a university student in China. I saw your thread pool implementation when I was studying concurrency-related knowledge, and I tried to make some extensions based on it.
It supports
- Thread pool expansion
resize() - Move semantics
ThreadPool(ThreadPool &&)ThreadPool & operator=(ThreadPool &&); - Features related to the C++17 standard
std::invoke_result_t<>
I think my thread pool implementation is far from production level, but I still want to share my learning results, I hope you can see it!