#include <thread>
void testa()
{
cout << "thread" << endl;
}
int main()
{
for (int i = 0; i < 10; ++i)
{
thread(testa).detach();
//t.detach();
}
system("pause");
return 0;
}
【C++】thread基本用法
最新推荐文章于 2024-09-14 23:49:23 发布