mirror of
https://github.com/nasa/trick.git
synced 2025-06-15 21:58:25 +00:00
Unintended performance issue with integ_loop at end of scheduled job classes #243
Created a new executive job that waits for threads to finish and readies them for their next frame of execution. Created a new job class system_thread_sync after the top of frame jobs and before the input processor is run to sync the threads. Along the way cleaned up instrumentation jobs on the threads to fix #290.
This commit is contained in:
@ -2,18 +2,23 @@ import os
|
||||
|
||||
def main():
|
||||
trick.real_time_enable()
|
||||
trick.itimer_enable()
|
||||
#trick.itimer_enable()
|
||||
trick.exec_set_software_frame(0.10)
|
||||
trick.stop(10)
|
||||
trick.stop(4)
|
||||
|
||||
trick.exec_set_thread_process_type(1, trick.PROCESS_TYPE_AMF_CHILD)
|
||||
trick.exec_set_thread_amf_cycle_time(1, 0.5)
|
||||
thr_con = trick.exec_get_thread(1).trigger_container
|
||||
thr_con.setThreadTrigger(trick.TT_MUTEX)
|
||||
#thr_con = trick.exec_get_thread(1).trigger_container
|
||||
#thr_con.setThreadTrigger(trick.TT_MUTEX)
|
||||
|
||||
trick.exec_set_thread_process_type(2, trick.PROCESS_TYPE_AMF_CHILD)
|
||||
trick.exec_set_thread_amf_cycle_time(2, 0.1)
|
||||
|
||||
trick.echo_jobs_on()
|
||||
trick.frame_log_on()
|
||||
|
||||
trick.add_read(2.0,"trick.echo_jobs_off()")
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
|
Reference in New Issue
Block a user