![]() |
CleanThreads() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Private Function |
Declared in: SocketThreadManager.h |
void CleanThreads();
Delete the thread structure
try { if (m_pThreadData) { for (int iCounter=0;iCounter<=m_iThreadCount;++iCounter) //Post a stop message if (m_pThreadData[iCounter].pThread->GetThreadID()) { PostThreadMessage(m_pThreadData[iCounter].pThread->GetThreadID(),WM_QUIT,0,0); //Delete the window DestroyWindow(m_pThreadData[iCounter].hWindowHandle); } //Delete the thread classes for (iCounter=0;iCounter<=m_iThreadCount;++iCounter) //Post a stop message delete m_pThreadData[iCounter].pThread; //Delete the structure delete [] m_pThreadData; } } ERROR_HANDLER("CleanThreads")
![]() |
Site content copyright © 2001 Barak Weichselbaum. See the About page for additional notices. This page last updated: 27 Jun 2001. |