UINT ThreadProc ()
{
.
The WaitForSingleObject (mThreadEventDead, INFINITE);//wait event trigger
.
return 0;
}
CodePudding user response:
Can bring INFINITE change as the time, it doesn't have been waiting for, check the return value, and determined the trigger or timeout, so, will have the opportunity through global variables, such as simple method,