Class CWin32Thread::
CWin32Thread()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: CWin32ThreadNext page: ~CWin32Thread    Show member index
Public Constructor Declared in:
Win32Thread.h

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

CWin32Thread(
    LPGenericThreadProc pThreadProc);

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

Ctor and Dtor pThreadProc - The thread proc to use

'Initializer Override(s)' icon -- Shortcut to top of page. Initializer Override(s)

CGenericThread(
pThreadProc)    
m_hThread(
0)    

'Function Body' icon -- Shortcut to top of page. Function Body

try
{
    //Set our name
    SetName(CWin32Thread_Class);

    //Create the thread
    if (m_pThreadProc)
    {
        //Create the thread in suspend mode
        m_hThread=CreateThread(NULL,
                               0,
                               Win32Thread,
                               this,
                               CREATE_SUSPENDED,
                               &m_dwThreadID);

        //Check if created
        if (m_hThread)
            SetThreadStatus(tsSuspended);
    }
}
ERROR_HANDLER("CWin32Thread")

'See Also' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Public base class CGenericThread  |  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.