摘要:
最近在使用std::thread的时候,遇到这样一个问题:std::thread t(func);如果不使用调用t.join()就会遇到 "terminate called whithout an active exception",但是在使用boost:thread的时候却没遇到这个问题,google了一下,找到答案:The trouble you are encountering is a result of thestopThreadgoing out of scope on the stack. The C++ standard has the following 阅读全文