Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ class EventsCBGExecutor : public rclcpp::Executor
void
spin(const std::function<void(const std::exception &)> & exception_handler);

RCLCPP_PUBLIC
void
spin_once(std::chrono::nanoseconds timeout = std::chrono::nanoseconds(-1)) override;

Expand All @@ -149,10 +150,12 @@ class EventsCBGExecutor : public rclcpp::Executor
/**
* @return true if work was available and executed
*/
RCLCPP_PUBLIC
bool collect_and_execute_ready_events(
std::chrono::nanoseconds max_duration,
bool recollect_if_no_work_available);

RCLCPP_PUBLIC
void
spin_all(std::chrono::nanoseconds max_duration) override;

Expand Down Expand Up @@ -240,6 +243,7 @@ class EventsCBGExecutor : public rclcpp::Executor
void
run(size_t this_thread_number, bool block_initially);

RCLCPP_PUBLIC
void
run(
size_t this_thread_number,
Expand Down Expand Up @@ -290,6 +294,7 @@ class EventsCBGExecutor : public rclcpp::Executor
*/
void trigger_callback_group_sync();

RCLCPP_PUBLIC
void spin_once_internal(std::chrono::nanoseconds timeout);

RCLCPP_DISABLE_COPY(EventsCBGExecutor)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ class TimerQueue
*/
bool remove_if_dropped(const TimerData * timer_data)
{
if (timer_data->rcl_ref.unique()) {
if (timer_data->rcl_ref.use_count() == 1) {
// clear on reset callback
if(rcl_timer_set_on_reset_callback(timer_data->rcl_ref.get(), nullptr,
nullptr) != RCL_RET_OK)
Expand Down