摘要: 使用: //创建 ThreadPool* pool = new ThreadPool(10); //分配任务 函数+参数,参数可以添加多个,后续逗号分隔 pool->enqueue(Myfunction,data); ThreadPool实现: #include <vector> #include 阅读全文
posted @ 2023-11-09 15:01 图图雷 阅读(32) 评论(0) 推荐(0)