For the past few weeks I’ve been giving the thread pool a MAJOR overhaul. Now I feel safe to say it’s a robust chunk of code! Here’s a few updates:
- The thread pool project is now its own library! No need to constantly recompile now!
- Task queue switched from the
std::queueto my own implementation of a Two-Lock Queue.
- Threads now process themselves instead of waiting for the thread pools’
Sleep()calls added in the threads so they don’t hog up performance.
- New and Improved tutorial.
Check out the improved C++ Win32 Thread Pool Tutorial! Now go, my pretties, and thread. Thread like you’ve never threaded before!