![]() |
GetJob() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Private Function |
Declared in: ThreadPool.h |
Declaration
void GetJob(
JobData& aData);
DescriptionGet a job
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
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. |