Class CThreadPool::
GetJob()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: ~CThreadPoolNext page: GetMaxThreads    Show member index
Private Function Declared in:
ThreadPool.h

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

void GetJob(
    JobData& aData);

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

Get a job

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

try
{
    CCriticalAutoRelease aRelease(m_pCSection);

    //Check we can have if
    if (!m_ulJobsCount)
    {
        //Can exists the CS
        aRelease.Exit();

        //Set all to null
        aData.pProc=NULL;
        aData.pDWORDProc=NULL;
        aData.pDataProc=NULL;
        aData.pParam=NULL;

        //And return
        return;
    }

    //Get the data
    aData=m_aJobList.front();

    //We can remove it now
    m_aJobList.pop_front();

    //Decrease the job count
    --m_ulJobsCount;
}
ERROR_HANDLER("GetJob")

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