Skip to content

Commit 0a5f3f2

Browse files
author
Mauro Passerino
committed
Revert. set_listener_callback->set_events_executor_callback
1 parent 3318c2d commit 0a5f3f2

17 files changed

+25
-25
lines changed

rclcpp/include/rclcpp/client.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class ClientBase
158158

159159
RCLCPP_PUBLIC
160160
void
161-
set_listener_callback(
161+
set_events_executor_callback(
162162
const rclcpp::executors::EventsExecutor * executor,
163163
rmw_listener_cb_t executor_callback) const;
164164

rclcpp/include/rclcpp/executors/events_executor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ class EventsExecutor : public rclcpp::Executor
209209
// We need to unset the callbacks to make sure that after removing events from the
210210
// queues, this entity will not push anymore before being completely destroyed.
211211
// This assumes that all supported entities implement this function.
212-
entity->set_listener_callback(nullptr, nullptr);
212+
entity->set_events_executor_callback(nullptr, nullptr);
213213

214214
// Remove events associated with this entity from the event queue
215215
{

rclcpp/include/rclcpp/executors/events_executor_notify_waitable.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class EventsExecutorNotifyWaitable final : public EventWaitable
6262

6363
RCLCPP_PUBLIC
6464
void
65-
set_listener_callback(
65+
set_events_executor_callback(
6666
const rclcpp::executors::EventsExecutor * executor,
6767
rmw_listener_cb_t executor_callback) const override
6868
{

rclcpp/include/rclcpp/experimental/subscription_intra_process_base.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class SubscriptionIntraProcessBase : public rclcpp::Waitable
7272

7373
RCLCPP_PUBLIC
7474
void
75-
set_listener_callback(
75+
set_events_executor_callback(
7676
const rclcpp::executors::EventsExecutor * executor,
7777
rmw_listener_cb_t executor_callback) const override;
7878

rclcpp/include/rclcpp/qos_event.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class QOSEventHandlerBase : public Waitable
108108
/// Set EventsExecutor's callback
109109
RCLCPP_PUBLIC
110110
void
111-
set_listener_callback(
111+
set_events_executor_callback(
112112
const rclcpp::executors::EventsExecutor * executor,
113113
rmw_listener_cb_t executor_callback) const override;
114114

rclcpp/include/rclcpp/service.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class ServiceBase
128128

129129
RCLCPP_PUBLIC
130130
void
131-
set_listener_callback(
131+
set_events_executor_callback(
132132
const rclcpp::executors::EventsExecutor * executor,
133133
rmw_listener_cb_t executor_callback) const;
134134

rclcpp/include/rclcpp/subscription_base.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ class SubscriptionBase : public std::enable_shared_from_this<SubscriptionBase>
271271

272272
RCLCPP_PUBLIC
273273
void
274-
set_listener_callback(
274+
set_events_executor_callback(
275275
const rclcpp::executors::EventsExecutor * executor,
276276
rmw_listener_cb_t executor_callback) const;
277277

rclcpp/include/rclcpp/waitable.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class Waitable
174174
RCLCPP_PUBLIC
175175
virtual
176176
void
177-
set_listener_callback(
177+
set_events_executor_callback(
178178
const rclcpp::executors::EventsExecutor * executor,
179179
rmw_listener_cb_t executor_callback) const;
180180

rclcpp/src/rclcpp/client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ ClientBase::exchange_in_use_by_wait_set_state(bool in_use_state)
203203
}
204204

205205
void
206-
ClientBase::set_listener_callback(
206+
ClientBase::set_events_executor_callback(
207207
const rclcpp::executors::EventsExecutor * executor,
208208
rmw_listener_cb_t executor_callback) const
209209
{

rclcpp/src/rclcpp/executors/events_executor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ EventsExecutor::EventsExecutor(
4040
executor_notifier_ = std::make_shared<EventsExecutorNotifyWaitable>();
4141
executor_notifier_->add_guard_condition(context_interrupt_gc);
4242
executor_notifier_->add_guard_condition(&interrupt_guard_condition_);
43-
executor_notifier_->set_listener_callback(this, &EventsExecutor::push_event);
43+
executor_notifier_->set_events_executor_callback(this, &EventsExecutor::push_event);
4444
executor_notifier_->set_on_destruction_callback(
4545
std::bind(
4646
&EventsExecutor::remove_entity<rclcpp::Waitable>,

0 commit comments

Comments
 (0)