Add an Init stat to all thread control variables

This makes the uninitilized value not the Run state.
This commit is contained in:
Andrew Johnson
2012-05-04 13:38:59 -05:00
parent 45348ad6ca
commit 243baddbf6
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -59,8 +59,8 @@ static epicsEventId workListEvent; /*wakeup event for dbCaTask*/
static int removesOutstanding = 0;
#define removesOutstandingWarning 10000
static enum {
ctlRun, ctlPause, ctlExit
static volatile enum {
ctlInit, ctlRun, ctlPause, ctlExit
} dbCaCtl;
static epicsEventId startStopEvent;
+2 -2
View File
@@ -50,12 +50,12 @@
/* Task Control */
enum ctl {ctlRun, ctlPause, ctlExit};
enum ctl {ctlInit, ctlRun, ctlPause, ctlExit};
/* Task Startup/Shutdown Synchronization */
static epicsEventId startStopEvent;
volatile enum ctl scanCtl;
static volatile enum ctl scanCtl;
/* SCAN ONCE */