Suppose i have pointer to a thread like this
CWinThread *m_pThread = AfxBeginThread(StartThread, this, THREAD_PRIORITY_NORMAL, 0, 0);
Now in my StartThread function assume i did all operations and the function returned like this
UINT CClassThread::StartThread(LPVOID pVoid)
{
return true;
}
Will my m_pThread be invalid when the return statement is executed?