Ignore:
Timestamp:
01/13/18 12:28:22 (6 years ago)
Author:
gost
Message:

[plugins] sispmctl.. extension step 2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/sispmctl/sispmctl.h

    r41689 r41691  
    66struct clist *myconfig[LISTHASHSIZE] = {NULL};
    77char* sispmctlconf = NULL;
     8struct stimerthread* sispmctl_checkthread = NULL;
    89
    910int sispmctl_Anzeige()
     
    678679}
    679680
     681void sispmctl_check_thread()
     682{
     683        int standby = 0;
     684        while (sispmctl_checkthread->aktion != STOP)
     685        {
     686                if(status.standby > 0 && standby == 0)
     687                {
     688                        sispmctl_stop(1);
     689                        standby = 1;
     690                }
     691                if(status.standby == 0 && standby == 1)
     692                {
     693                        sispmctl_start(1);
     694                        standby = 0;
     695                }
     696                sleep(2);
     697        }
     698        sispmctl_checkthread = NULL;
     699}
     700
    680701void sispmctl_main()
    681702{
Note: See TracChangeset for help on using the changeset viewer.