摘要:
1、等待线程执行完成 join() 方法数会阻塞主线程直到目标线程调用完毕,即join会直接执行该子线程的函数体部分。 2、暂停线程(线程休眠) 使用std::this_thread::sleep_for或std::this_thread::sleep_until。 3、线程终止 一般情况下当线程函 阅读全文
摘要:
1、普通函数(线程入口) 2、类成员函数(线程入口) https://www.jianshu.com/u/88ad4f76eb79 阅读全文