Getting/Setting Default FlowController Properties

To get the default DDS_FlowControllerProperty_t values, use this operation on the DomainParticipant:

DDS_ReturnCode_t get_default_flowcontroller_property  
(DDS_FlowControllerProperty_t & property)

The retrieved property will match the set of values specified on the last successful call to the DomainParticipant’s set_default_flowcontroller_property(), or if the call was never made, the default values listed in DDS_FlowControllerProperty_t.

To change the default DDS_FlowControllerProperty_t values used when a new FlowController is created, use this operation on the DomainParticipant:

DDS_ReturnCode_t set_default_flowcontroller_property  
(const DDS_FlowControllerProperty_t & property)

The special value DDS_FLOW_CONTROLLER_PROPERTY_DEFAULT may be passed for the property to indicate that the default property should be reset to the default values the factory would use if set_default_flowcontroller_property() had never been called.

Note: It is not safe to set the default FlowController properties while another thread may be simultaneously calling get_default_flowcontroller_property(), set_default_flowcontroller_property(), or create_flowcontroller() with DDS_FLOW_CONTROLLER_PROPERTY_DEFAULT as the qos parameter. It is also not safe to get the default FlowController properties while another thread may be simultaneously calling get_default_flowcontroller_property().

© 2018 RTI