Add an Init stat to all thread control variables
This makes the uninitilized value not the Run state.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
@@ -69,8 +69,8 @@ static epicsMutexId fLock;
|
||||
static ELLLIST fList = ELLLIST_INIT;
|
||||
|
||||
/* Watchdog task control */
|
||||
static enum {
|
||||
twdctlRun, twdctlDisable, twdctlExit
|
||||
static volatile enum {
|
||||
twdctlInit, twdctlRun, twdctlDisable, twdctlExit
|
||||
} twdCtl;
|
||||
static epicsEventId loopEvent;
|
||||
static epicsEventId exitEvent;
|
||||
|
||||
@@ -138,7 +138,7 @@ struct event_ext {
|
||||
};
|
||||
|
||||
|
||||
enum ctl {ctlRun, ctlPause, ctlExit};
|
||||
enum ctl {ctlInit, ctlRun, ctlPause, ctlExit};
|
||||
|
||||
/* NOTE: external used so they remember the state across loads */
|
||||
#ifdef GLBLSOURCE
|
||||
|
||||
Reference in New Issue
Block a user