![]() |
Initialize() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Public Function |
Declared in: SocketThreadManager.h |
BOOL Initialize( unsigned long ulThreadCount, LPCSTR lpClassName);
Initialize the thread manager
try { //Are we initialized? if (m_bInitialized) { //Report it ReportError("Initialize","Already initialized!"); //Exit return FALSE; } //Check the number of threads if (ulThreadCount>MAX_THREADS) { //Report it ReportError("Initialize","Too many threads to spawn!"); //Exit return FALSE; } //Check the number of threads if (!ulThreadCount) { //Report it ReportError("Initialize","Can't have zero threads!"); //Exit return FALSE; } //Save the count m_ulThreadCount=ulThreadCount; //Try to spawn the threads return SpawnThreads(lpClassName); } ERROR_HANDLER_RETURN("Initialize",FALSE)
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |