Pointers to threads
        Posted  
        
            by viswanathan
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by viswanathan
        
        
        
        Published on 2010-05-13T05:07:45Z
        Indexed on 
            2010/05/13
            5:14 UTC
        
        
        Read the original article
        Hit count: 335
        
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?
© Stack Overflow or respective owner