Important Update:
- DeviceCore:
- Added PollCycle variable (not used here)
- WatchdogCore:
- Return "true" on in Process()
- SelectableCore:
- Minor update (code compacted)
- Application/Function:
- Added CApplication as friend of CFunction
- Added param WaitToTerminate on Function
- Application Run() only exists if all (WaitToTerminate) functions
has terminated cleanly.
This commit is contained in:
@@ -31,8 +31,8 @@ const char DataTypeName[][20] = { "None", "Unsigned16", "Signed16", "Unsigned32_
|
||||
// Structure prototypes
|
||||
typedef struct SDevice TDevice;
|
||||
typedef struct SDeviceParam TDeviceParam;
|
||||
typedef struct SDeviceParamGroup TDeviceParamGroup;
|
||||
typedef struct SDeviceParamItem TDeviceParamItem;
|
||||
typedef struct SDeviceParamGroup TDeviceParamGroup; // Parameter group, e.g. used with polling parameters
|
||||
typedef struct SDeviceParamItem TDeviceParamItem; // Placeholder parameters in Parameter groups
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
@@ -138,6 +138,7 @@ protected:
|
||||
TChannel * EventChannel = NULL;
|
||||
|
||||
// Poll
|
||||
int PollCycle; // Device Polling state, e.g. Init, Connect, Run, Disonnect, Shutdown
|
||||
int PollStep; // Position in polling sequence
|
||||
timeval PollWait; // Time at which last poll was done
|
||||
long PollInterval; // Minimum delay between polls
|
||||
|
||||
Reference in New Issue
Block a user