原文:std::thread “terminate called without an active exception”

最近在使用std::thread的时候,遇到这样一个问题: 如果不使用调用t.join 就会遇到 terminate called whithout an active exception ,但是在使用boost:thread的时候却没遇到这个问题,google了一下,找到答案: The trouble you are encountering is a result of thestopThre ...

2013-09-10 18:24 0 11867 推荐指数:

查看详情

terminate called without an active exception异常

在gcc4.4下,采用回调机制写了一个类似std::thread的线程类。 但是使用时却发生了核心已转移的错误。 main函数调用的代码大致是 int main(int argc, char *argv[]) { FuncA(); sleep(10 ...

Thu May 31 18:13:00 CST 2018 0 1056
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM