Changeset 41483 for trunk/Ohana/src/opihi/pantasks/pantasks.c.in
- Timestamp:
- Feb 3, 2021, 2:12:35 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pantasks/pantasks.c.in (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pantasks/pantasks.c.in
r39457 r41483 7 7 # define opihi_rcfile ".pantasksrc" 8 8 9 static pthread_t JobsAndTasksThread; 10 static pthread_t controllerThread; 11 9 12 /* program-dependent initialization */ 10 13 void program_init (int *argc, char **argv) { … … 12 15 OHANA_UNUSED_PARAM(argv); 13 16 14 pthread_t JobsAndTasksThread;15 pthread_t controllerThread;16 17 17 auto_break = TRUE; 18 18 … … 67 67 /* add program-dependent exit functions here */ 68 68 void cleanup () { 69 // stop the threads before calling the free functions 69 70 QuitKapa (); 70 71 QuitController (); 71 72 ConfigFree (); 73 74 // tell the threads to exit and wait for them to exit 75 QuitJobsAndTasksThread(); pthread_join (JobsAndTasksThread, NULL); 76 QuitControllerThread(); pthread_join (controllerThread, NULL); 72 77 73 78 FreeBasic ();
Note:
See TracChangeset
for help on using the changeset viewer.
