補充內容 (2018-7-28 12:39 AM):
抱歉,看太快了沒看到,M大有做(tb + nowThread)->_wrap = (void*) this;
將自己的指標丟給_wrap
但我試過沒有(tb + nowThread)->_wrap = (void*) this;
好像也可以,為什麼?
Multithreaded versions of the C run-time libraries only.
To use _beginthread or _beginthreadex, the application must link with one of the multithreaded C run-time libraries.
MY0613 發表於 2018-7-30 11:20 AM
其實我不時懂你這邊的意思,但在 static FunctionCalledByThread function 裡面,
我目的是想用 ThreadBlo ...
cockroachrun 發表於 2018-7-30 04:01 PM
這程式有bug
bug 發生在這段code這段code 會讓你的ThreadIndex 為 8 . 由你的結果也發現確實會出現8
當 ...
歡迎光臨 伊莉討論區 (http://mobile.eyny.com/) | Powered by Discuz! |