#include <iostream>
#include <thread>
int main()
{
for (int i = 0; i < 1; ++i)
{
std::thread([]()
{
std::cout << "thread" << std::endl;
}).detach();
}
for (;;)
{
}
return 0;
}
c++ thread detach
最新推荐文章于 2024-07-19 10:45:18 发布