15 #ifndef RCLCPP__EXECUTORS__MULTI_THREADED_EXECUTOR_HPP_ 16 #define RCLCPP__EXECUTORS__MULTI_THREADED_EXECUTOR_HPP_ 23 #include <unordered_map> 56 size_t number_of_threads = 0,
57 bool yield_before_execute =
false,
74 run(
size_t this_thread_number);
80 size_t number_of_threads_;
81 bool yield_before_execute_;
90 #endif // RCLCPP__EXECUTORS__MULTI_THREADED_EXECUTOR_HPP_
MultiThreadedExecutor(const executor::ExecutorArgs &args=executor::ExecutorArgs(), size_t number_of_threads=0, bool yield_before_execute=false, std::chrono::nanoseconds timeout=std::chrono::nanoseconds(-1))
Constructor for MultiThreadedExecutor.
#define RCLCPP_DISABLE_COPY(...)
Definition: macros.hpp:26
void spin()
Do work periodically as it becomes available to us. Blocking call, may block indefinitely.
void run(size_t this_thread_number)
This header provides the get_node_base_interface() template function.
Definition: allocator_common.hpp:24
size_t get_number_of_threads()
#define RCLCPP_SMART_PTR_DEFINITIONS(...)
Definition: macros.hpp:36
Coordinate the order and timing of available communication tasks.
Definition: executor.hpp:97
Definition: multi_threaded_executor.hpp:35
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
virtual ~MultiThreadedExecutor()
Definition: executor.hpp:69