-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
Description
Thank you for writing and publishing this thread pool implementation. It seems like a glaring hole in the C++ STL / Boost etc. As it stands std::async is totally unusable (runs "deferred" or one thread per task and blows up). C++20 offers "new futures", but no task launching/scheduling as far as I can see.
So a pool is totally necessary!
I noticed that your ReadMe says "TODO work stealing". Does you pool take this Sean Parent talk into account?
https://www.youtube.com/watch?v=zULU6Hhp42w&feature=emb_logo
This blog has a minimal implementation which does:
https://vorbrodt.blog/2019/02/27/advanced-thread-pool/
https://github.com/mvorbrodt/blog