![]() |
ManagedThread() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Private Function |
Declared in: ManagedThread.h |
Declaration
static DWORD ManagedThread(
LPVOID lpData);
DescriptionOur thread proc
Function Body
try
{
//Get our class
CManagedThread* pClass;
pClass=(CManagedThread*)lpData;
//Do we exit
BOOL bExit;
bExit=FALSE;
//Set we are alive
if (pClass->m_pEnterEvent)
pClass->m_pEnterEvent->Set();
else
return FALSE;
//The value
DWORD dwValue;
//Call the user proc
try
{
dwValue=(*pClass->m_pUserProc)(pClass->m_pExitEvent,
pClass->m_lpData);
}
catch (...)
{
dwValue=FALSE;
}
//Set the exit event
pClass->m_pEnterEvent->Set();
//Exit
return dwValue;
}
ERROR_HANDLER_STATIC_RETURN(CManagedThread_Class,"ManagedThread",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. |