目測很難找到比如下這個連接更簡單的線程池實現了。用起來也很方便。好東西。git
https://github.com/mbrossard/threadpoolgithub
http://stackoverflow.com/questions/6297428/existing-threadpool-c-implementation 線程