1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#include<mutex> #include<thread> #include<vector> #include<map>
using namespace std;
void () { std::cout<<"我的线程执行完毕了!"<<std::endl; }
int main() { thread myobj(myprint); myobj.join(); std::cout<<"hello world!"<<std::endl; return 0; }
|
近期评论