C++中的std:thread的join函数与detach函数有什么区别

2025-04-08 22:41:50
推荐回答(1个)
回答1:

join是等线程结束,detach是解除线程和线程对象的绑定。完全两码事啊。