![]() |
GetMostAvailableThread() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Private Function |
Declared in: SocketThreadManager.h |
int GetMostAvailableThread();
Get the freeiest thread
try { int iIndex; iIndex=0; //Start searching the threads for (int iCounter=1;iCounter<m_iThreadCount;++iCounter) //Check is it larger if (m_pThreadData[iCounter].iSocketCount<m_pThreadData[iIndex].iSocketCount && m_pThreadData[iCounter].hThreadHandle) //Set the new index iIndex=iCounter; //Return the value return iIndex+1; } ERROR_HANDLER_RETURN("GetMostAvailableThread",0)
![]() |
Site content copyright © 2001 Barak Weichselbaum. See the About page for additional notices. This page last updated: 24 Apr 2001. |