Class CSocketThreadManager::
CleanThreads()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: m_pThreadDataNext page: CSocketThreadManager    Show member index
Private Function Declared in:
SocketThreadManager.h

'Declaration' icon -- Shortcut to top of page. Declaration

void CleanThreads();

'Description' icon -- Shortcut to top of page. Description

Delete the thread structure

'Function Body' icon -- Shortcut to top of page. Function Body

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")

'See Also' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Public base class CSpoofBase  |  Hierarchy Chart Hierarchy Chart


Get Surveyor!This web site was generated using Surveyor V4.50.811.1.  Click here for more information. Site content copyright © 2001 Barak Weichselbaum. See the About page for additional notices. This page last updated: 27 Jun 2001.