mirror of
https://github.com/nasa/trick.git
synced 2025-01-06 13:18:46 +00:00
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:
parent
9e28d4094c
commit
60b09907a3
@ -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) ;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user