[問題] 請問boost的thread 如何得知被中斷的點

看板C_and_CPP (C/C++)作者 (Bad_To_The_Bone)時間11年前 (2014/08/19 16:28), 編輯推噓0(000)
留言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
文章代碼(AID): #1JymgO4t (C_and_CPP)
文章代碼(AID): #1JymgO4t (C_and_CPP)