bool ConsoleJobRunner::Run(Job &job) { ConsoleOperationEnvironment env; job.Run(env); return true; }
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; }