今天发现:detach()不启用,程序还会崩溃异常 std::thread task01(upload_info,imgPathNew, rootInfo,flag); task01.detach();