diff --git a/rclcpp/include/rclcpp/executors/multi_threaded_executor.hpp b/rclcpp/include/rclcpp/executors/multi_threaded_executor.hpp index d8d9d49..9f70558 100644 --- a/rclcpp/include/rclcpp/executors/multi_threaded_executor.hpp +++ b/rclcpp/include/rclcpp/executors/multi_threaded_executor.hpp @@ -58,7 +58,7 @@ public: std::vector threads; { std::lock_guard wait_lock(wait_mutex_); - size_t thread_id_ = 1; + size_t thread_id_ = 1; // Use a _ suffix to avoid shadowing `rclcpp::thread_id` for (size_t i = number_of_threads_; i > 0; --i) { std::this_thread::sleep_for(std::chrono::milliseconds(100));