thermferm/panel.c

changeset 199
3f5d277a69e3
parent 197
531725a09012
child 200
a215ddaabbe2
equal deleted inserted replaced
198:20716bcff2b0 199:3f5d277a69e3
24 #include "panel.h" 24 #include "panel.h"
25 25
26 #ifdef HAVE_WIRINGPI_H 26 #ifdef HAVE_WIRINGPI_H
27 27
28 28
29 extern int my_shutdown;
30 extern int debug;
31
32
33
34 PI_THREAD (my_panel_loop)
35 {
36
37 syslog(LOG_NOTICE, "Thread my_panel_loop started");
38 if (debug)
39 fprintf(stdout, "Thread my_panel_loop started\n");
40
41 /*
42 * Loop forever until the external shutdown variable is set.
43 */
44 for (;;) {
45 if (my_shutdown)
46 break;
47
48 /*
49 * Loop 10 milliseconds
50 */
51 usleep(10000);
52 }
53
54 syslog(LOG_NOTICE, "Thread my_panel_loop stopped");
55 if (debug)
56 fprintf(stdout, "Thread my_panel_loop stopped\n");
57
58 return 0;
59 }
29 60
30 61
31 #endif 62 #endif

mercurial