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

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

virtual CGenericThread::ThreadPriority GetPriority() const;

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

Get the thread priority

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

try
{
    //Check if we have the thread
    if (!m_hThread)
        return CGenericThread::tpNormal;

    int iPriority;

    //Get the priority
    iPriority=GetThreadPriority(m_hThread);

    //And return the value
    switch (iPriority)
    {
    case THREAD_PRIORITY_ABOVE_NORMAL:
        return CGenericThread::tpAboveNormal;
    case THREAD_PRIORITY_BELOW_NORMAL:
        return CGenericThread::tpBelowNormal;
    case THREAD_PRIORITY_HIGHEST:
        return CGenericThread::tpHighest;
    case THREAD_PRIORITY_IDLE:
        return CGenericThread::tpIdle;
    case THREAD_PRIORITY_LOWEST:
        return CGenericThread::tpLowest;
    case THREAD_PRIORITY_NORMAL:
        return CGenericThread::tpNormal;
    case THREAD_PRIORITY_TIME_CRITICAL:
        return CGenericThread::tpTimeCritical;
    default:
        return CGenericThread::tpNormal;
    }
}
ERROR_HANDLER_RETURN("GetPriority",CGenericThread::tpNormal)

'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.