![]() |
Clear() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Private Function |
Declared in: SocketPool.h |
Declarationvoid Clear();
DescriptionClear all the data
Function Body
try
{
//Lock the CS
CCriticalAutoRelease aRelease(m_pCSection);
//We are closing
m_bClosing=TRUE;
//Lock the map
CCriticalAutoRelease aRelease2(m_pCSectionQueue);
//Start to delete the sockets
SocketMap::iterator aIterator;
aIterator=m_aSocketMap.begin();
//Iterate it
while (aIterator!=m_aSocketMap.end())
{
//Delete the socket
aIterator->second->DeleteSocketFromThread(1000);
//Next socket
++aIterator;
}
//Wait for all to close
Sleep(5000);
//No longer closing
m_bClosing=FALSE;
}
ERROR_HANDLER("Clear")
See Also
This web site was generated
using Surveyor V4.50.811.1. Click
here
for more information. |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |