摘要: 示例: void test(int times) { // 子线程睡眠times秒 this_thread是当前子线程 this_thread::sleep_for(chrono::seconds(times)); std::cout << "hellow thread1" << endl; } i 阅读全文
posted @ 2022-12-04 23:24 安静点-- 阅读(217) 评论(0) 推荐(0)