Skip to content

Make number of threads in MultiThreadedExecutor configurable #441

@matt-attack

Description

@matt-attack

Currently the MultiThreadedExecutor just uses the number of hardware cores/threads as the number of threads to use: https://github.com/ros2/rclcpp/blob/master/rclcpp/src/rclcpp/executors/multi_threaded_executor.cpp#L29

It would be useful for it to be optionally configurable through an argument to the constructor so that one can effectively limit the maximum resource usage, much like how this could be done with nodelets in the past.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions