Esempio n. 1
0
bool
ConsoleJobRunner::Run(Job &job)
{
  ConsoleOperationEnvironment env;
  job.Run(env);
  return true;
}
Esempio n. 2
0
bool JobManager::RunJob()
{
	Job *job;

	for (int p = 0; p < NUM_PRIORITIES; p++) {
		if (m_queuedJobs[p].dequeue(&job))
		{
			job->Run();
			m_finished_jobs.enqueue(job);
			return true;
		}
	}

	return false;
}