Skip to content

Commit

Permalink
open participant with NO status events enable
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Dec 20, 2023
1 parent 1caa0b4 commit c3e1069
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions third-party/realdds/src/dds-participant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@ void dds_participant::init( dds_domain_id domain_id, std::string const & partici
// Above are defaults
override_participant_qos_from_json( pqos, settings );

// Listener will call DataReaderListener::on_data_available for a specific reader,
// not SubscriberListener::on_data_on_readers for any reader
// ( See note on https://fast-dds.docs.eprosima.com/en/v2.7.0/fastdds/dds_layer/core/entity/entity.html )
StatusMask par_mask = StatusMask::all() >> StatusMask::data_on_readers();
// NOTE: the listener callbacks we use are all specific to FastDDS and so are always enabled:
// https://fast-dds.docs.eprosima.com/en/latest/fastdds/dds_layer/core/entity/entity.html#listener
// We need none of the standard callbacks at this level: these can be enabled on a per-reader/-writer basis!
StatusMask const par_mask = StatusMask::none();
_participant_factory = DomainParticipantFactory::get_shared_instance();
_participant
= DDS_API_CALL( _participant_factory->create_participant( domain_id, pqos, _domain_listener.get(), par_mask ) );
Expand Down

0 comments on commit c3e1069

Please sign in to comment.