rclcpp
master
C++ ROS Client Library API
|
Go to the documentation of this file.
15 #ifndef RCLCPP__EXECUTORS__MULTI_THREADED_EXECUTOR_HPP_
16 #define RCLCPP__EXECUTORS__MULTI_THREADED_EXECUTOR_HPP_
23 #include <unordered_map>
57 size_t number_of_threads = 0,
58 bool yield_before_execute =
false,
79 run(
size_t this_thread_number);
85 size_t number_of_threads_;
86 bool yield_before_execute_;
95 #endif // RCLCPP__EXECUTORS__MULTI_THREADED_EXECUTOR_HPP_
#define RCLCPP_DISABLE_COPY(...)
Definition: macros.hpp:26
Coordinate the order and timing of available communication tasks.
Definition: executor.hpp:58
void run(size_t this_thread_number)
This header provides the get_node_base_interface() template function.
Definition: allocator_common.hpp:24
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
virtual ~MultiThreadedExecutor()
#define RCLCPP_SMART_PTR_DEFINITIONS(...)
Definition: macros.hpp:36
Options to be passed to the executor constructor.
Definition: executor_options.hpp:28
Definition: multi_threaded_executor.hpp:35
MultiThreadedExecutor(const rclcpp::ExecutorOptions &options=rclcpp::ExecutorOptions(), size_t number_of_threads=0, bool yield_before_execute=false, std::chrono::nanoseconds timeout=std::chrono::nanoseconds(-1))
Constructor for MultiThreadedExecutor.
size_t get_number_of_threads()