15 #ifndef RCLCPP__EXECUTORS__MULTI_THREADED_EXECUTOR_HPP_ 16 #define RCLCPP__EXECUTORS__MULTI_THREADED_EXECUTOR_HPP_ 22 #include <unordered_map> 53 size_t number_of_threads = 0,
54 bool yield_before_execute =
false);
70 run(
size_t this_thread_number);
76 size_t number_of_threads_;
77 bool yield_before_execute_;
86 #endif // RCLCPP__EXECUTORS__MULTI_THREADED_EXECUTOR_HPP_ Definition: executor.hpp:66
#define RCLCPP_DISABLE_COPY(...)
Definition: macros.hpp:26
Definition: allocator_common.hpp:24
void run(size_t this_thread_number)
size_t get_number_of_threads()
virtual ~MultiThreadedExecutor()
#define RCLCPP_SMART_PTR_DEFINITIONS(...)
Definition: macros.hpp:36
Coordinate the order and timing of available communication tasks.
Definition: executor.hpp:90
void spin()
Do work periodically as it becomes available to us. Blocking call, may block indefinitely.
MultiThreadedExecutor(const executor::ExecutorArgs &args=rclcpp::executor::create_default_executor_arguments(), size_t number_of_threads=0, bool yield_before_execute=false)
Constructor for MultiThreadedExecutor.
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
Definition: multi_threaded_executor.hpp:34