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:
@@ -60,6 +60,7 @@ protected:
|
||||
// Function Definition
|
||||
const char * Type = NULL;
|
||||
char * Name = NULL;
|
||||
bool WaitToTerminate = false;
|
||||
|
||||
// Channels
|
||||
TChannel * FirstChannel = NULL;
|
||||
@@ -138,6 +139,8 @@ public:
|
||||
virtual bool LinkInputChannel( const char * ChannelName, const char * OutFunctionName, const char * OutChannelName, bool Bidirectional );
|
||||
virtual bool LinkOutputChannel( const char * ChannelName, const char * InFunctionName, const char * InChannelName, bool Bidirectional );
|
||||
virtual bool Process() = 0;
|
||||
|
||||
friend class CApplication;
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user