From 7422cda6c66ad1eae1dbfc511f431db236eb5a0a Mon Sep 17 00:00:00 2001 From: Tully Foote Date: Thu, 17 Dec 2015 11:07:00 -0800 Subject: [PATCH] remove excess sleep identified in #169 --- rclcpp/src/rclcpp/executors/multi_threaded_executor.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/rclcpp/src/rclcpp/executors/multi_threaded_executor.cpp b/rclcpp/src/rclcpp/executors/multi_threaded_executor.cpp index d419ffd..0be93f8 100644 --- a/rclcpp/src/rclcpp/executors/multi_threaded_executor.cpp +++ b/rclcpp/src/rclcpp/executors/multi_threaded_executor.cpp @@ -46,7 +46,6 @@ MultiThreadedExecutor::spin() { std::lock_guard wait_lock(wait_mutex_); for (; thread_id < number_of_threads_ - 1; ++thread_id) { - std::this_thread::sleep_for(std::chrono::milliseconds(100)); auto func = std::bind(&MultiThreadedExecutor::run, this, thread_id); threads.emplace_back(func); }