Skip to content

Commit

Permalink
Added RCPPUTILS_TSA_GUARDED_BY macros to previously atomic booleans
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Santiago <[email protected]>
Signed-off-by: Ricardo González Moreno <[email protected]>
  • Loading branch information
jsan-rt authored and richiware committed Jul 21, 2022
1 parent da3ade0 commit 850eeeb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,21 @@ class PubListener : public EventListenerInterface, public eprosima::fastdds::dds
std::set<eprosima::fastrtps::rtps::GUID_t> subscriptions_
RCPPUTILS_TSA_GUARDED_BY(discovery_m_);

bool deadline_changes_;
bool deadline_changes_
RCPPUTILS_TSA_GUARDED_BY(on_new_event_m_);

eprosima::fastdds::dds::OfferedDeadlineMissedStatus offered_deadline_missed_status_
RCPPUTILS_TSA_GUARDED_BY(on_new_event_m_);

bool liveliness_changes_;
bool liveliness_changes_
RCPPUTILS_TSA_GUARDED_BY(on_new_event_m_);

eprosima::fastdds::dds::LivelinessLostStatus liveliness_lost_status_
RCPPUTILS_TSA_GUARDED_BY(on_new_event_m_);

bool incompatible_qos_changes_;
bool incompatible_qos_changes_
RCPPUTILS_TSA_GUARDED_BY(on_new_event_m_);

eprosima::fastdds::dds::OfferedIncompatibleQosStatus incompatible_qos_status_
RCPPUTILS_TSA_GUARDED_BY(on_new_event_m_);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,19 +169,27 @@ class SubListener : public EventListenerInterface, public eprosima::fastdds::dds
private:
CustomSubscriberInfo * subscriber_info_ = nullptr;

bool deadline_changes_;
bool deadline_changes_
RCPPUTILS_TSA_GUARDED_BY(on_new_event_m_);

eprosima::fastdds::dds::RequestedDeadlineMissedStatus requested_deadline_missed_status_
RCPPUTILS_TSA_GUARDED_BY(on_new_event_m_);

bool liveliness_changes_;
bool liveliness_changes_
RCPPUTILS_TSA_GUARDED_BY(on_new_event_m_);

eprosima::fastdds::dds::LivelinessChangedStatus liveliness_changed_status_
RCPPUTILS_TSA_GUARDED_BY(on_new_event_m_);

bool sample_lost_changes_;
bool sample_lost_changes_
RCPPUTILS_TSA_GUARDED_BY(on_new_event_m_);

eprosima::fastdds::dds::SampleLostStatus sample_lost_status_
RCPPUTILS_TSA_GUARDED_BY(on_new_event_m_);

bool incompatible_qos_changes_;
bool incompatible_qos_changes_
RCPPUTILS_TSA_GUARDED_BY(on_new_event_m_);

eprosima::fastdds::dds::RequestedIncompatibleQosStatus incompatible_qos_status_
RCPPUTILS_TSA_GUARDED_BY(discovery_m_);

Expand Down

0 comments on commit 850eeeb

Please sign in to comment.