![]() |
Clear() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Private Function |
Declared in: SocketPool.h |
void Clear();
Clear all the data
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")
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |