Class CManagedThread::
ManagedThread()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: GetThreadNext page: operator =    Show member index
Private Function Declared in:
ManagedThread.h

'Declaration' icon -- Shortcut to top of page. Declaration

static DWORD ManagedThread(
    LPVOID lpData);

'Description' icon -- Shortcut to top of page. Description

Our thread proc

'Function Body' icon -- Shortcut to top of page. 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' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Public base class CErrorHandler  |  Hierarchy Chart Hierarchy Chart


Get Surveyor!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.