摘要: 线程池 1. 创建线程 thread #include <thread> int main(){ std::thread th() } thread 直接创建一个线程,参数是所需执行的函数。 2. join 当开启线程后,主线程不会等待其他线程执行完后再关闭,所以需要让主线程去等待其他线程执行完之后 阅读全文
posted @ 2023-12-16 20:54 zxinlog 阅读(26) 评论(0) 推荐(0)