Changeset 41483 for trunk/Ohana/src/opihi/pantasks/controller_threads.c
- Timestamp:
- Feb 3, 2021, 2:12:35 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pantasks/controller_threads.c
r39457 r41483 5 5 static int CheckControllerRun = FALSE; 6 6 7 static int ControllerThreadRuns = TRUE; 8 7 9 void CheckControllerSetState (int state) { 8 10 CheckControllerRun = state; … … 10 12 int CheckControllerGetState () { 11 13 return (CheckControllerRun); 14 } 15 16 void QuitControllerThread (void) { 17 ControllerThreadRuns = FALSE; 12 18 } 13 19 … … 26 32 } 27 33 28 while ( 1) {34 while (ControllerThreadRuns) { 29 35 30 36 // check for thread suspend … … 47 53 usleep (500000); // allow other threads a chance to run 48 54 } 55 return NULL; 49 56 }
Note:
See TracChangeset
for help on using the changeset viewer.
