Link rcutils against Threads#579
Open
Tobias-Fischer wants to merge 3 commits into
Open
Conversation
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>
Author
|
FYI @wep21 @traversaro, opened from the RoboStack patch tracking effort in RoboStack/robostack.github.io#16. |
|
Tick the box to add this pull request to the merge queue (same as
|
ahcorde
approved these changes
Jul 20, 2026
Contributor
|
Pulls: #579 |
Co-authored-by: Silvio Traversaro <silvio@traversaro.it> Signed-off-by: Tobias Fischer <info@tobiasfischer.info>
Signed-off-by: Tobias Fischer <info@tobiasfischer.info>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
rcutilsuses pthread-backed functionality, for examplepthread_onceinsrc/base64.cand the pthread fallback path for thread-local storage on older iOS. Finding and linking CMake'sThreads::Threadstarget makes that dependency explicit, and exportingThreadsmakes the package metadata more conservative for downstream consumers.