lzpong / threadpool

based on C++11 , a mini threadpool , accept variable number of parameters 基于C++11的线程池,简洁且可以带任意多的参数

Home Page:http://www.cnblogs.com/lzpong/p/6397997.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automatically reduce the number of threads

fowuyu opened this issue · comments

when idle thread too much,should reduce threads automatically

这个比较简单吧, 任务执行完成后, 在 最后面检查_idlThrNum, 达到一定数量就break好了.