摘要: C++ 多线程(std::thread): 1、多线程使用:如下 1 std::thread t1; 2 std::thread t2(foo2); 3 t1 = std::thread(foo1); 4 t1.swap(t2); 5 t1.join(); 6 t2.join(); 声明一个线程,并 阅读全文
posted @ 2020-06-09 21:35 Ccluck_tian 阅读(447) 评论(0) 推荐(0)