15 #ifndef RCLCPP__EXECUTORS__MULTI_THREADED_EXECUTOR_HPP_ 16 #define RCLCPP__EXECUTORS__MULTI_THREADED_EXECUTOR_HPP_ 22 #include <unordered_map> 55 size_t number_of_threads = 0,
56 bool yield_before_execute =
false);
72 run(
size_t this_thread_number);
78 size_t number_of_threads_;
79 bool yield_before_execute_;
88 #endif // RCLCPP__EXECUTORS__MULTI_THREADED_EXECUTOR_HPP_ #define RCLCPP_DISABLE_COPY(...)
Definition: macros.hpp:26
MultiThreadedExecutor(const executor::ExecutorArgs &args=executor::ExecutorArgs(), size_t number_of_threads=0, bool yield_before_execute=false)
Constructor for MultiThreadedExecutor.
void spin()
Do work periodically as it becomes available to us. Blocking call, may block indefinitely.
void run(size_t this_thread_number)
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:95
Definition: multi_threaded_executor.hpp:34
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
virtual ~MultiThreadedExecutor()
Definition: executor.hpp:67