DemonGiggle/thread_issues — pull request #1 by arton0306 (2012-11-09 18:00:10+00:00)
Title: Arton

I think the condition variable can avoid extra cpu occupy.
For example, if we change the max thread count to 4 or the number of our cores.
The polling in "while" will decrease the performance.

But for the time being, I don't know why it got dead thread.

In the other hand, the version just mimicking the logic in c.v. version, and it works.