線程同步的幾個問題

#include<iostream> #include<thread> #include<mutex> using namespace std; void handle1(int time) { std::this_thread::sleep_for(std::chrono::seconds(time)); cout << "hello thread1" << endl; } void h
相關文章
相關標籤/搜索