线程同步的几个问题

#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
相关文章
相关标签/搜索