Skip to content

Add parameter to configure number of thread#1708

Merged
fujitatomoya merged 7 commits intoros2:masterfrom
wep21:feature/add-param-for-thread-num
Dec 13, 2021
Merged

Add parameter to configure number of thread#1708
fujitatomoya merged 7 commits intoros2:masterfrom
wep21:feature/add-param-for-thread-num

Conversation

@wep21
Copy link
Copy Markdown
Contributor

@wep21 wep21 commented Jul 6, 2021

No description provided.

@wep21
Copy link
Copy Markdown
Contributor Author

wep21 commented Jul 6, 2021

I added a parameter to configure number of thread instead of an argument.
@ivanpauno @wjwwood @fujitatomoya Could you review this?
#1693

Copy link
Copy Markdown
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so is this expected to use with --ros-args -p thread_num:=2? if i am not mistaken.

i was thinking that we would want to consider to enable and provide parameter service to set/get the number of threads on rclcpp_components::ComponentManager.

@ivanpauno
Copy link
Copy Markdown
Member

@wep21 frindly ping, there are still some unresolved comments here

@wep21 wep21 force-pushed the feature/add-param-for-thread-num branch from 36ee1ec to fd648c2 Compare November 7, 2021 17:55
@wep21 wep21 requested a review from ivanpauno December 7, 2021 04:46
@wep21 wep21 force-pushed the feature/add-param-for-thread-num branch from afb94bc to 7611d4d Compare December 7, 2021 05:56
@ivanpauno
Copy link
Copy Markdown
Member

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@fujitatomoya
Copy link
Copy Markdown
Collaborator

@wep21 it seems that we need to rebase, could you do that? (see https://ci.ros2.org/job/ci_linux/15733/console)

Copy link
Copy Markdown
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with green CI

@wep21 wep21 force-pushed the feature/add-param-for-thread-num branch from 7611d4d to 4ef00f8 Compare December 7, 2021 16:25
@wep21
Copy link
Copy Markdown
Contributor Author

wep21 commented Dec 7, 2021

@fujitatomoya I rebased from the latest maser.
@ivanpauno Could you run ci again?

@fujitatomoya
Copy link
Copy Markdown
Collaborator

CI(retry):

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@ivanpauno
Copy link
Copy Markdown
Member

Sorry, there are conflicts again after #1781 was merged.
@wep21 could you rebase again to resolve conflicts? Thanks!

wep21 added 7 commits December 8, 2021 05:09
Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp>
Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp>
Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp>
Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp>
Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp>
Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp>
Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp>
@wep21 wep21 force-pushed the feature/add-param-for-thread-num branch from 4ef00f8 to c653972 Compare December 7, 2021 20:15
@wep21
Copy link
Copy Markdown
Contributor Author

wep21 commented Dec 7, 2021

@ivanpauno I have finished resolving conflicts and rebase.

@wep21
Copy link
Copy Markdown
Contributor Author

wep21 commented Dec 13, 2021

@ivanpauno friendly ping

@fujitatomoya
Copy link
Copy Markdown
Collaborator

let me run CI once just in case.

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@fujitatomoya
Copy link
Copy Markdown
Collaborator

all green, i will go ahead to merge this into master.

@fujitatomoya fujitatomoya merged commit ee20dd3 into ros2:master Dec 13, 2021
@fujitatomoya
Copy link
Copy Markdown
Collaborator

@wep21 thanks for the contribution.

@wep21 wep21 deleted the feature/add-param-for-thread-num branch December 13, 2021 18:33
Bi0T1N pushed a commit to Bi0T1N/rclcpp that referenced this pull request Dec 15, 2021
* Add parameter to configure number of thread

Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants