Files
qt6-migration-pipeline/external/rti_connext_dds-7.7.0/include/ndds/pres/pres_condition.h
T
torsten ebfd3c8386 Adds RTI 6.6 Pro commercial lib
Entire-Checkpoint: 01M6ENHX3N0WDT7ZGK22ZJ8JD6
2026-11-02 17:40:05 +00:00

87 lines
2.2 KiB
C

/* (c) Copyright 2003-2021, Real-Time Innovations, Inc. All rights reserved. */
/*
* @(#)pres_condition.h generated by: makeheader Tue Apr 7 22:56:13 2026
*
* built from: condition.ifc
*/
#ifndef pres_condition_h
#define pres_condition_h
#ifndef pres_dll_h
#include "pres/pres_dll.h"
#endif
#ifndef osapi_type_h
#include "osapi/osapi_type.h"
#endif
#ifndef osapi_time_h
#include "osapi/osapi_ntptime.h"
#endif
#ifndef osapi_semaphore_h
#include "osapi/osapi_semaphore.h"
#endif
#ifndef reda_sequenceNumber_h
#include "reda/reda_sequenceNumber.h"
#endif
#ifndef reda_inlineList_h
#include "reda/reda_inlineList.h"
#endif
typedef enum {
TRIGGER_VALUE_FALSE = 0x00,
TRIGGER_VALUE_TRUE = 0x01,
TRIGGER_VALUE_IGNORE = 0x02
} PRESConditionTriggerValue;
struct PRESWaitSet;
struct WaitSetNode {
struct REDAInlineListNode _node;
struct PRESWaitSet *_presWaitSetPtr;
};
/*e \ingroup PRESConditionModule
* \brief A Condition.
*/
struct PRESCondition {
/* Whether or not this condition is triggered */
RTI_ATOMIC(RTIBool) _triggerValue;
/* Indicates whether this PRESCondition is a PRESReaderQueueIndexCondition */
RTIBool _isIndexCondition;
/* List of waitsets to which this condition is attached */
struct REDAInlineList _waitSetList;
struct REDAExclusiveArea *_ea;
void *_userObject;
};
extern PRESDllExport
RTIBool
PRESCondition_get_trigger_value(struct PRESCondition *self);
extern PRESDllExport
RTIBool PRESCondition_set_trigger_value(
struct PRESCondition *self,
RTIBool *conditionAttachedToWaitset,
PRESConditionTriggerValue trigger_value,
struct REDAWorker *worker);
extern PRESDllExport
RTIBool PRESCondition_is_index_condition(struct PRESCondition *self);
extern PRESDllExport
void PRESCondition_initialize(struct PRESCondition *self,
void *userObject,
RTIBool isIndexCondition,
struct REDAExclusiveArea* ea);
extern PRESDllExport
void *PRESCondition_getUserObject(
struct PRESCondition *self);
#endif /* pres_condition_h */