Home > Software engineering >  After the thread exits CWinThread pointer how empty?
After the thread exits CWinThread pointer how empty?

Time:03-12

I created this thread:
CWinThread * pworkThread=NULL;
UINT WorkThread (LPVOID lpparam)
{
Sleep (10000);
Int I=0;
i++;
return 1;
}

PworkThread=AfxBeginThread (THREAD_PRIORITY_NORMAL WorkThread, NULL, 0, CREATE_SUSPENDED, NULL);
Said the pworkThread isn't empty thread creation success; I judge by pworkThread pointer thread exists;
But when a thread after the execution pworkThread still isn't empty
How do you in after the thread execution pworkThread is empty?

CodePudding user response:

exitthread
  • Related