[問題] 請問boost的thread 如何得知被中斷的點
看板C_and_CPP (C/C++)作者donkeychen (Bad_To_The_Bone)時間11年前 (2014/08/19 16:28)推噓0(0推 0噓 0→)留言0則, 0人參與討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
vc++
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
boost
問題(Question):
請教大家
t.interrupt();
執行後 應該會到 t bind的 function 內的 interrupt point才會中斷
並丟出 boost::thread_interrupted
只是內建也有幾個interrupt point
想請教一下如何在catch裡面顯示究竟被中斷 是做到哪邊丟出的呢
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 210.59.147.226
※ 文章網址: http://www.ptt.cc/bbs/C_and_CPP/M.1408436888.A.137.html
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章