26 static struct timespec oneMs = {0,1000000};
96 if (rand()<RAND_MAX/2)
163 if (rand()<RAND_MAX/2)
193 nanosleep(&oneMs,NULL);
207 if (rand()<RAND_MAX/2)
208 nanosleep(&oneMs,NULL);
224 if (rand()<RAND_MAX/2)
225 nanosleep(&oneMs,NULL);
226 if (rand()<RAND_MAX/99)
void FwRtSetInitializeActivPr(FwRtDesc_t rtDesc, FwRtAction_t initializeActivPr)
Define the function implementing the Initialization Action for the Activation Procedure.
int apImplActivLogicCounter
Counter increment by the Implement Activation Logic Action.
FwRtDesc_t FwRtMakeTestRT3(unsigned int i)
This function resets the i-th instance of the Test RT Container RT3 and returns a pointer to its desc...
void FwRtSetPosixAttr(FwRtDesc_t rtDesc, pthread_attr_t *pThreadAttr, pthread_mutexattr_t *pMutexAttr, pthread_condattr_t *pCondAttr)
Set the pointers to the attribute objects of the POSIX thread, mutex and condition variable used by t...
#define MAX_RT_INDEX
Maximum number of Test RT Container instances of type RT1 or RT2.
Header file to define all constants and types for the RT Container Module of the FW Profile...
FwRtDesc_t FwRtMakeTestRT5(unsigned int i)
This function resets the i-th instance of the Test RT Container RT5 and returns a pointer to its desc...
FwRtOutcome_t apExecFuncBehaviourFlag
Flag determining the outcome of the Execute Functional Behaviour Action.
int apSetupNotifCounter
Counter incremented by the Setup Notification Action.
FwRtDesc_t FwRtMakeTestRT1(unsigned int i)
This function resets the i-th instance of the Test RT Container RT1 and returns a pointer to its desc...
void FwRtSetImplementActivLogic(FwRtDesc_t rtDesc, FwRtAction_t implementActivLogic)
Define the function implementing the activation logic for the RT Container.
void FwRtSetInitializeNotifPr(FwRtDesc_t rtDesc, FwRtAction_t initializeNotifPr)
Define the function implementing the Initialization Action for the Notification Procedure.
Declaration of the configuration interface for a RT Container.
struct FwRtDesc rt1Desc[MAX_RT_INDEX]
The array of RT Container descriptors for RT1 containers.
struct FwRtDesc rt2Desc[MAX_RT_INDEX]
The array of RT Container descriptors for RT2 containers.
void FwRtReset(FwRtDesc_t rtDesc)
Reset the RT Container descriptor (RTD).
int apFinalCounter
Counter incremented by the Finalization Action of the Activation Procedure.
void FwRtSetFinalizeActivPr(FwRtDesc_t rtDesc, FwRtAction_t finalizeActivPr)
Define the function implementing the Finalization Action for the Activation Procedure.
int apExecFuncBehaviourCounter
Counter incremented by the Execute Functional Behaviour Action.
void FwRtSetImplementNotifLogic(FwRtDesc_t rtDesc, FwRtAction_t implementNotifLogicPr)
Define the function implementing the Notification Logic for the Notification Procedure.
Type for the data structure passed to all RT Containers made by the functions declared by this header...
int npInitCounter
Counter incremented by the Initialization Action of the Notification Procedure.
void FwRtSetSetUpNotif(FwRtDesc_t rtDesc, FwRtAction_t setUpNotification)
Define the function implementing the logic to set up a notification for the RT Container.
FwRtOutcome_t apImplActivLogicFlag
Flag determining outcome of Implement Activation Logic Action.
Declaration of functions to create and configure test RT Containers.
FwRtDesc_t FwRtMakeTestRT2(unsigned int i)
This function resets the i-th instance of the Test RT Container RT2 and returns a pointer to its desc...
int apInitCounter
Counter incremented by the Initialization Action of the Activation Procedure.
struct FwRtDesc rt5Desc[MAX_RT_INDEX]
The array of RT Container descriptors for RT5 containers.
struct FwRtDesc rt4Desc[MAX_RT_INDEX]
The array of RT Container descriptors for RT4 containers.
int npImplNotifLogicCounter
Counter incremented by the Implement Notification Logic Action.
struct FwRtDesc rt3Desc[MAX_RT_INDEX]
The array of RT Container descriptors for RT3 containers.
void FwRtSetFinalizeNotifPr(FwRtDesc_t rtDesc, FwRtAction_t finalizeNotifPr)
Define the function implementing the Finalization Action for the Notification Procedure.
void FwRtSetData(FwRtDesc_t rtDesc, void *rtData)
Set the pointer to the RT Container data in the container descriptor.
void FwRtInit(FwRtDesc_t rtDesc)
Initialize a RT Container.
FwRtDesc_t FwRtMakeTestRT4(unsigned int i)
This function resets the i-th instance of the Test RT Container RT4 and returns a pointer to its desc...
void * FwRtGetData(FwRtDesc_t rtDesc)
Get the pointer to the container data in the container descriptor.
FwRtOutcome_t npImplNotifLogicFlag
Flag determining outcome of Implement Notification Logic Action.
Structure representing a RT Container Descriptor.
int FwRtOutcome_t
Type used for the outcome of a container action.
void FwRtSetExecFuncBehaviour(FwRtDesc_t rtDesc, FwRtAction_t execFuncBehaviour)
Define the function which executes the functional behaviour associated to the RT Container.
int npFinalCounter
Counter incremented by the Finalization Action of the Notification Procedure.