Skip to content

Link rcutils against Threads#579

Open
Tobias-Fischer wants to merge 3 commits into
ros2:rollingfrom
Tobias-Fischer:codex/robostack-rolling-rcutils-threads
Open

Link rcutils against Threads#579
Tobias-Fischer wants to merge 3 commits into
ros2:rollingfrom
Tobias-Fischer:codex/robostack-rolling-rcutils-threads

Conversation

@Tobias-Fischer

Copy link
Copy Markdown

This is part of an effort to contribute RoboStack downstream patches back upstream.

Origin: patch/ros-rolling-rcutils.patch, authored by Daisuke Nishimatsu.

This extracts the thread-linking portion of the downstream patch. rcutils uses pthread-backed functionality, for example pthread_once in src/base64.c and the pthread fallback path for thread-local storage on older iOS. Finding and linking CMake's Threads::Threads target makes that dependency explicit, and exporting Threads makes the package metadata more conservative for downstream consumers.

This upstreams the thread-linking portion of RoboStack downstream patch `patch/ros-rolling-rcutils.patch`.

rcutils uses pthread-backed functionality, for example pthread_once in src/base64.c and the pthread fallback path for thread-local storage on older iOS. Find and link the CMake Threads target explicitly, and export it for downstream consumers, instead of relying on platform-specific implicit pthread linkage.

Signed-off-by: Tobias Fischer <info@tobiasfischer.info>
@Tobias-Fischer

Copy link
Copy Markdown
Author

FYI @wep21 @traversaro, opened from the RoboStack patch tracking effort in RoboStack/robostack.github.io#16.

@mergify

mergify Bot commented Jul 20, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@ahcorde

ahcorde commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Pulls: #579
Gist: https://gist.githubusercontent.com/ahcorde/f59b152e46f732398b6ed6629ebbe8d8/raw/80b9c1316cd15ab224cc6be33c88367df2a82800/ros2.repos
BUILD args: --packages-above-and-dependencies rcutils
TEST args: --packages-above rcutils
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/19907

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

Comment thread CMakeLists.txt
Comment thread CMakeLists.txt Outdated
Tobias-Fischer and others added 2 commits July 21, 2026 10:59
Co-authored-by: Silvio Traversaro <silvio@traversaro.it>
Signed-off-by: Tobias Fischer <info@tobiasfischer.info>
Signed-off-by: Tobias Fischer <info@tobiasfischer.info>
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