* sdk: reset the member variable cbThreadPool::m_taskAdded to false after sending the cbEVT_THREADTASK_ALLDONE event, otherwise, this variable is never set to false once it was set to true.

git-svn-id: https://svn.code.sf.net/p/codeblocks/code/trunk@9788 2a5c6006-c6dd-42ca-98ab-0921f2732cef
* sdk: fix a bug in cbThreadPool class which is a regression of rev2480. The loop number for the function call m_semaphore->Post() should be limited by both the idle threads and the task queue's size. Full detailed description can be found in http://forums.codeblocks.org/index.php/topic,18904.msg129520.html#msg129520

git-svn-id: https://svn.code.sf.net/p/codeblocks/code/trunk@9789 2a5c6006-c6dd-42ca-98ab-0921f2732cef
- sdk: add comments to the thread pool class. (no functional changes)

git-svn-id: https://svn.code.sf.net/p/codeblocks/code/trunk@9790 2a5c6006-c6dd-42ca-98ab-0921f2732cef
- sdk: make code more readable by passing explicit type argument in function template of std::min(). (thanks oBFusCATed)

git-svn-id: https://svn.code.sf.net/p/codeblocks/code/trunk@9791 2a5c6006-c6dd-42ca-98ab-0921f2732cef
- build fixes: Redid the including of PCH headers correctly; Should not change any functionality; but, might cause build errors. (thanks to stahta01)

git-svn-id: https://svn.code.sf.net/p/codeblocks/code/trunk@9792 2a5c6006-c6dd-42ca-98ab-0921f2732cef
- build fixes: Used wxSmith to regenerate headers using wxSmith HeadersPCH and InternalHeadersPCH; Should not change any functionality; but, might cause build errors. (thanks to stahta01)

git-svn-id: https://svn.code.sf.net/p/codeblocks/code/trunk@9793 2a5c6006-c6dd-42ca-98ab-0921f2732cef