Revision cd21e832 inc/urt_topic.h
inc/urt_topic.h | ||
---|---|---|
46 | 46 |
*/ |
47 | 47 |
typedef struct urt_topic |
48 | 48 |
{ |
49 |
urt_topic_t* next;
|
|
50 |
urt_topicid_t id;
|
|
51 |
urt_osMutex_t lock;
|
|
52 |
urt_osEventSource_t evtSource;
|
|
53 |
unsigned int numHrtSubscribers;
|
|
54 |
urt_osCondvar_t hrtReleased;
|
|
55 |
urt_message_t mandatoryMessage;
|
|
56 |
urt_message_t* latestMessage;
|
|
57 |
#if (URT_CFG_PUBSUB_QOS_RATECHECKS)
|
|
58 |
urt_hrtsubscriber_t* hrtSubscribers;
|
|
59 |
urt_osTimer_t qosRateTimer;
|
|
60 |
#endif /* URT_CFG_PUBSUB_QOS_RATECHECKS */
|
|
61 |
#if (URT_CFG_PUBSUB_PROFILING)
|
|
62 |
uint64_t numMessagesPublished;
|
|
63 |
uint64_t numMessagesDiscarded;
|
|
64 |
unsigned int numSubscribers;
|
|
65 |
#endif /* URT_CFG_PUBSUB_PROFILING */
|
|
49 |
urt_topic_t* next; |
|
50 |
urt_topicid_t id; |
|
51 |
urt_osMutex_t lock; |
|
52 |
urt_osEventSource_t evtSource; |
|
53 |
unsigned int numHrtSubscribers; |
|
54 |
urt_osCondvar_t hrtReleased; |
|
55 |
urt_message_t mandatoryMessage; |
|
56 |
urt_message_t* latestMessage; |
|
57 |
#if (URT_CFG_PUBSUB_QOS_RATECHECKS) |
|
58 |
urt_hrtsubscriber_t* hrtSubscribers; |
|
59 |
urt_osTimer_t qosRateTimer; |
|
60 |
#endif /* URT_CFG_PUBSUB_QOS_RATECHECKS */ |
|
61 |
#if (URT_CFG_PUBSUB_PROFILING) |
|
62 |
uint64_t numMessagesPublished; |
|
63 |
uint64_t numMessagesDiscarded; |
|
64 |
unsigned int numSubscribers; |
|
65 |
#endif /* URT_CFG_PUBSUB_PROFILING */ |
|
66 | 66 |
}urt_topic_t; |
67 | 67 |
|
68 | 68 |
/******************************************************************************/ |
... | ... | |
77 | 77 |
extern "C" { |
78 | 78 |
#endif /* defined(__cplusplus) */ |
79 | 79 |
|
80 |
urt_status_t urtTopicInit(urt_topic_t* topic, urt_topicid_t id);
|
|
80 |
urt_status_t urtTopicInit(urt_topic_t* topic, urt_topicid_t id); |
|
81 | 81 |
#if defined(__cplusplus) |
82 | 82 |
} |
83 | 83 |
#endif /* defined(__cplusplus) */ |
Also available in: Unified diff