lxg

导航

 

 

 

 

 

 

 

 

 测试如下:

    threadPool.InitThread(8);
    threadPool.Start();
    for(int i=0; i<100; ++i)
    {
        TestRunnable* task = new TestRunnable();
        task->i = i;
        threadPool.PushTask(task);
    }
posted on 2020-07-20 16:04  lxg_7105  阅读(147)  评论(0编辑  收藏  举报