![]() |
Initialize() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Public Function |
Declared in: SocketThreadManager.h |
Declaration
BOOL Initialize(
unsigned long ulThreadCount,
LPCSTR lpClassName);
DescriptionInitialize the thread manager
Function Body
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)
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. |