Skip to content

Commit

Permalink
Merge pull request #28 from mauropasse/mauro/add-events-executor-fixes
Browse files Browse the repository at this point in the history
Fix linter issues
  • Loading branch information
alsora authored Feb 10, 2022
2 parents 5d5c981 + 2e189cf commit 490de16
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class ClientListener : public eprosima::fastdds::dds::DataReaderListener

std::unique_lock<std::mutex> lock_mutex(on_new_response_m_);

if(on_new_response_cb_) {
if (on_new_response_cb_) {
on_new_response_cb_(user_data_, 1);
} else {
unread_count_++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class ServiceListener : public eprosima::fastdds::dds::DataReaderListener

std::unique_lock<std::mutex> lock_mutex(on_new_request_m_);

if(on_new_request_cb_) {
if (on_new_request_cb_) {
on_new_request_cb_(user_data_, 1);
} else {
unread_count_++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#define RMW_FASTRTPS_SHARED_CPP__CUSTOM_SUBSCRIBER_INFO_HPP_

#include <atomic>
#include <algorithm>
#include <condition_variable>
#include <limits>
#include <memory>
Expand Down
4 changes: 2 additions & 2 deletions rmw_fastrtps_shared_cpp/src/custom_publisher_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ PubListener::on_offered_deadline_missed(

std::unique_lock<std::mutex> lock_mutex(on_new_event_m_);

if(on_new_event_cb_){
if (on_new_event_cb_){
on_new_event_cb_(user_data_, 1);
} else {
unread_events_count_++;
Expand All @@ -69,7 +69,7 @@ void PubListener::on_liveliness_lost(

std::unique_lock<std::mutex> lock_mutex(on_new_event_m_);

if(on_new_event_cb_) {
if (on_new_event_cb_) {
on_new_event_cb_(user_data_, 1);
} else {
unread_events_count_++;
Expand Down
4 changes: 2 additions & 2 deletions rmw_fastrtps_shared_cpp/src/custom_subscriber_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ SubListener::on_requested_deadline_missed(

std::unique_lock<std::mutex> lock_mutex(on_new_event_m_);

if(on_new_event_cb_) {
if (on_new_event_cb_) {
on_new_event_cb_(user_data_, 1);
} else {
unread_events_count_++;
Expand Down Expand Up @@ -73,7 +73,7 @@ void SubListener::on_liveliness_changed(

std::unique_lock<std::mutex> lock_mutex(on_new_event_m_);

if(on_new_event_cb_) {
if (on_new_event_cb_) {
on_new_event_cb_(user_data_, 1);
} else {
unread_events_count_++;
Expand Down

0 comments on commit 490de16

Please sign in to comment.