![]() |
CleanThreads() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Private Function |
Declared in: SocketThreadManager.h |
Declarationvoid CleanThreads();
DescriptionDelete the thread structure
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
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. |