IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 3, 2021, 2:12:35 PM (5 years ago)
Author:
eugene
Message:

stop threads before freeing data when QUIT is called; fuzz added to last task execution was not correctly added to usec -- this made fast tasks run many invalid attempts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pantasks/jobs_and_tasks_thread.c

    r39457 r41483  
    55static int CheckTasksRun = FALSE;
    66static int CheckJobsRun = FALSE;
     7
     8static int JobsAndTasksThreadRuns = TRUE;
    79
    810void CheckJobsSetState (int state) {
     
    2325}
    2426
     27void QuitJobsAndTasksThread (void) {
     28  JobsAndTasksThreadRuns = FALSE; 
     29}
     30
    2531void *CheckJobsAndTasksThread (void *data) {
    2632  OHANA_UNUSED_PARAM(data);
     
    3945  }
    4046
    41   while (1) {
     47  while (JobsAndTasksThreadRuns) {
    4248
    4349    // one run of the task checker
     
    6369    }     
    6470  }
     71  return NULL;
    6572}
    6673
Note: See TracChangeset for help on using the changeset viewer.