[問題] 請問如何abort由_beginthreadex 產生的thread

看板C_and_CPP (C/C++)作者 (...)時間16年前 (2009/10/05 18:08), 編輯推噓0(002)
留言2則, 2人參與, 最新討論串1/1
不好意思 小弟使用 _beginthreadex 產生一個thread 可是想要在主線程 將這個thread 強制終止 有查到 _endthreadex 只是 _endthreadex 似乎是寫在thread裡面 不曉得在 thread 外面將 _beginthreadex 產生出來的 thread 強制 abort 該怎麼作 謝謝大家 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.220.118.243

10/05 18:12, , 1F
TerminateThread 如何?
10/05 18:12, 1F

10/05 20:06, , 2F
謝謝你
10/05 20:06, 2F
文章代碼(AID): #1AoSMJ57 (C_and_CPP)
文章代碼(AID): #1AoSMJ57 (C_and_CPP)