摘要: 1 初始化线程池 确定线程数量,并做好互斥访问 2 启动所有线程 std::vector<std::thread*> threads_; unique_lock<mutex> lock(mutex_); for (int i = 0; i < thread_num_; i++) { auto th 阅读全文
posted @ 2024-08-07 16:36 白伟碧一些小心得 阅读(4) 评论(0) 推荐(0) 编辑