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/pantasks_server.c.in

    r39457 r41483  
    1515void special_init (int *argc, char **argv);
    1616
     17static pthread_t JobsAndTasksThread;
     18static pthread_t controllerThread;
     19static pthread_t clientsThread;
     20
    1721/* program-dependent initialization */
    1822int main (int argc, char **argv) {
     
    2024  char hostname[256], portinfo[256];
    2125  char log_stdout[1024], log_stderr[1024], tmpname[1024];
    22   pthread_t JobsAndTasksThread;
    23   pthread_t clientsThread;
    24   pthread_t controllerThread;
    2526  int InitSocket, BindSocket;
    2627  SockAddress Address;
     
    136137  QuitController ();
    137138  ConfigFree ();
     139
     140  QuitJobsAndTasksThread(); pthread_join (JobsAndTasksThread, NULL);
     141  QuitControllerThread();   pthread_join (controllerThread, NULL);
     142  QuitClientThread();       pthread_join (clientsThread, NULL);
     143
    138144  InitBasic ();
    139145  InitData ();
Note: See TracChangeset for help on using the changeset viewer.