IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 18, 2022, 10:26:42 AM (4 years ago)
Author:
eugene
Message:

stop pcontrol threads and exit before shutting down

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20220316/Ohana/src/opihi/pcontrol/CheckSystem.c

    r39457 r42173  
    44static struct timeval lastlive = {0, 0};
    55static RunLevels RunLevel = PCONTROL_RUN_NONE;
     6
     7static int CheckSystemThreadRuns = TRUE;
     8
     9void QuitCheckSystemThread (void) {
     10  CheckSystemThreadRuns = FALSE; 
     11}
     12
    613
    714RunLevels SetRunLevel (RunLevels level) {
     
    6774  gprintInit ();
    6875
    69   while (1) {
     76  while (CheckSystemThreadRuns) {
    7077    // stop here if the user-thread requests (no objects in flight)
    7178    TestCheckPoint ();
Note: See TracChangeset for help on using the changeset viewer.