FW Profile - C1 Implementation
FwRtConstants.h
Go to the documentation of this file.
1 
21 #ifndef FWRT_CONSTANTS_H_
22 #define FWRT_CONSTANTS_H_
23 
24 #include <pthread.h>
25 
31 typedef struct FwRtDesc* FwRtDesc_t;
32 
34 typedef int FwRtBool_t;
35 
37 typedef int FwRtOutcome_t;
38 
40 typedef short int FwRtCounterU2_t;
41 
51 
60 typedef enum {
98  rtJoinErr = 20,
103 } FwRtState_t;
104 
105 typedef enum { rtSampleEnumItem } FwRtSampleEnum;
106 
128 struct FwRtDesc {
136  pthread_attr_t* pThreadAttr;
142  pthread_mutexattr_t* pMutexAttr;
148  pthread_condattr_t* pCondAttr;
150  pthread_t activationThread;
152  pthread_mutex_t mutex;
154  pthread_cond_t cond;
253  int errCode;
255  void* rtData;
256 };
257 
258 #endif /* FWRT_CONSTANTS_H_ */
void * rtData
The pointer to the RT Container data.
pthread_t activationThread
The thread associated to the RT Container.
The function to wait on a condition has reported an error.
Definition: FwRtConstants.h:84
The function to unlock the container mutex has reported an error.
Definition: FwRtConstants.h:80
FwRtState_t state
The state of the RT Container.
The RT Container is in state STOPPED.
Definition: FwRtConstants.h:64
FwRtAction_t initializeNotifPr
Pointer to the function encapsulating the initialization action for the Notification Procedure...
The function to create the Activation Thread has reported an error.
Definition: FwRtConstants.h:68
The function to wait on a thread join has reported an error.
Definition: FwRtConstants.h:98
FwRtAction_t implementNotifLogic
Pointer to the function encapsulating the implementation of the notification logic.
The function to destroy the container mutex has reported an error.
Definition: FwRtConstants.h:72
FwRtCounterU2_t notifCounter
The notification counter.
pthread_cond_t cond
The condition variable associated to the RT Container.
The function to initialize a thread attribute has reported an error.
Definition: FwRtConstants.h:90
FwRtAction_t finalizeActivPr
Pointer to the function encapsulating the finalization action for the Activation Procedure.
int errCode
The return value of the last system call which failed.
FwRtAction_t implementActivLogic
Pointer to the function encapsulating the implementation of the activation logic. ...
The function to initialize the container mutex has reported an error.
Definition: FwRtConstants.h:70
FwRtState_t
Enumerated type for the state of the RT Container.
Definition: FwRtConstants.h:60
FwRtOutcome_t(* FwRtAction_t)(FwRtDesc_t)
Type for a pointer to a container action.
Definition: FwRtConstants.h:50
The function to initialize the container condition has reported an error.
Definition: FwRtConstants.h:74
The function to destroy the container condition has reported an error.
Definition: FwRtConstants.h:76
FwRtAction_t setUpNotification
Pointer to the function encapsulating the logic to set up the notification for the RT Container...
FwRtAction_t execFuncBehaviour
Pointer to the function encapsulating the execution of the functional behaviour associated to the RT ...
The RT Container has not yet been initialized.
Definition: FwRtConstants.h:62
pthread_mutex_t mutex
The mutex associated to the RT Container.
struct FwRtDesc * FwRtDesc_t
Forward declaration for the pointer to a RT Container Descriptor.
Definition: FwRtConstants.h:31
pthread_attr_t * pThreadAttr
The pointer to the Activation Thread attributes.
int FwRtBool_t
Type used for booleans (0 is "false" and 1 is "true").
Definition: FwRtConstants.h:34
The function to destroy a mutex attribute has reported an error.
Definition: FwRtConstants.h:94
A configuration function has been called during the container&#39;s normal operation (i.e.
FwRtAction_t initializeActivPr
Pointer to the function encapsulating the initialization action for the Activation Procedure...
pthread_mutexattr_t * pMutexAttr
The pointer to the mutex attributes.
The function to destroy a mutex attribute has reported an error.
Definition: FwRtConstants.h:92
FwRtBool_t notifPrStarted
The flag indicating whether the Notification Procedure is STÂRTED.
The function to signal a condition has reported an error.
Definition: FwRtConstants.h:82
short int FwRtCounterU2_t
Type used for unsigned integers with a "medium" range.
Definition: FwRtConstants.h:40
FwRtAction_t finalizeNotifPr
Pointer to the function encapsulating the finalization action for the Notification Procedure...
The function to initialize a mutex attribute has reported an error.
Definition: FwRtConstants.h:88
The function to destroy a thread attribute has reported an error.
Definition: FwRtConstants.h:96
The function to lock the container mutex has reported an error.
Definition: FwRtConstants.h:78
Structure representing a RT Container Descriptor.
pthread_condattr_t * pCondAttr
The pointer to the condition variable attributes.
The RT Container is in state STARTED.
Definition: FwRtConstants.h:66
int FwRtOutcome_t
Type used for the outcome of a container action.
Definition: FwRtConstants.h:37
FwRtBool_t activPrStarted
The flag indicating whether the Activation Procedure is STÂRTED.
The function to initialize a mutex attribute has reported an error.
Definition: FwRtConstants.h:86
P&P Software GmbH, Copyright 2011, All Rights Reserved