Move the loop that waits for scheduled threads to finish out of advance_sim_time #292

Same error as in 17. When we moved the thread sync code, a loop to clear all job
complete flags was left out causing unit test errors.
This commit is contained in:
Alex Lin 2016-08-29 10:11:05 -05:00
parent 9e28d4094c
commit 60b09907a3

View File

@ -53,6 +53,12 @@ int Trick::Executive::thread_sync() {
}
}
/* reset the job complete flags on thread 0 (master thread) */
threads[0]->job_queue.reset_curr_index();
while ( (curr_job = threads[0]->job_queue.find_job(time_tics)) != NULL ) {
curr_job->complete = false;
}
return(0) ;
}