![]() |
CheckQueue() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Private Function |
Declared in: SocketPool.h |
void CheckQueue();
Check if we have data in queue
try { //Lock the CSection CCriticalAutoRelease aRelease(m_pCSection); //Do we have data if (m_aQueue.empty()) //Decrease the count --m_iActiveSockets; else { //Take the socket CSocketPoolSocket* pSocket; pSocket=m_aQueue.front(); //Protect the socket std::auto_ptr<CSocketPoolSocket> pProtection(pSocket); //Remove the front m_aQueue.pop_front(); //Exit the CS aRelease.Exit(); //Try to reconnect if (!pSocket->Connect()) //Recheck the queue CheckQueue(); else //Release the protection pProtection.release(); } } ERROR_HANDLER("CheckQueue")
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |