原文: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