“The Improved Thread Pool” Update: October 1st, 2010

A simple thread pool. The task queue has many ...
Image via Wikipedia

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::queue to my own implementation of a Two-Lock Queue.
  • Threads now process themselves instead of waiting for the thread pools’ process() function.
  • 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!


One thought on ““The Improved Thread Pool” Update: October 1st, 2010

  1. Yukiko September 25, 2013 / 6:08 PM

    Howdy, i read your blog from time to time and i own a similar one and i was just wondering if you get a lot of spam feedback? If so how do you reduce it, any plugin or anything you can suggest? I get so much lately it’s driving me crazy so any support is very much appreciated.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s