#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
最新推荐文章于 2025-07-21 20:22:48 发布