diff --git a/trick_source/sim_services/Executive/src/Executive_thread_sync.cpp b/trick_source/sim_services/Executive/src/Executive_thread_sync.cpp index c08b1f13..778320db 100644 --- a/trick_source/sim_services/Executive/src/Executive_thread_sync.cpp +++ b/trick_source/sim_services/Executive/src/Executive_thread_sync.cpp @@ -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) ; }