推 scaaa:改用_beginthreadex, _endthreadex()吧 59.116.169.235 04/24 23:55
→ scaaa:把MSDN看一遍你就知道了 59.116.169.235 04/24 23:59
謝謝您。剛剛去查了 MSDN,確實有這樣的敘述
You are also able to use the thread handle returned by _beginthreadex with
the synchronization APIs, which you cannot do with _beginthread.
我把我的程式修改過後,變成這樣:http://0rz.tw/e842h
但執行時,仍然會有 race condition 的問題
MSDN 似乎沒有更進一步的解說...?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.104.62.219
推 scaaa:因為兩個都是th[0] XD 59.116.169.235 04/25 01:07
→ james732:真是個超級白癡的錯誤 謝謝!! 59.104.62.219 04/25 01:09
推 yoco315:推薦兩個都是 0 XDDDDDDDDDD 140.114.203.59 04/25 08:06