|
|
|
@ -438,10 +438,12 @@ static void manageJobStartedEvent(color_ostream& out){
|
|
|
|
|
// build a list of newly started jobs
|
|
|
|
|
for ( df::job_list_link* link = &df::global::world->jobs.list; link != NULL; link = link->next ) {
|
|
|
|
|
df::job* job = link->item;
|
|
|
|
|
if(Job::getWorker(job) && startedJobs.emplace(job).second){
|
|
|
|
|
if (job && Job::getWorker(job)) {
|
|
|
|
|
if (startedJobs.emplace(job).second) {
|
|
|
|
|
newly_started_jobs.push_back(job);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (tick - eventLastTick[handler.eventHandler] >= handler.freq) {
|
|
|
|
|
eventLastTick[handler.eventHandler] = tick;
|
|
|
|
|
for(auto job : newly_started_jobs){
|
|
|
|
|