mbrossard/threadpool — pull request #1 by skuzye (2013-05-01 15:01:28+00:00)
Title: Correct a bug when exiting.

The previous code could make the worker thread exit without finishing
all work in the queue. With this modification we make sure the queue is
empty before exiting all worker threads. Moreover, the main thread will
wait for all worker threads when try to join them all, assuring all work
is done before exiting.