Skip to content

Use pthread_once in rcl_yaml_param_parser on Apple - #1325

Merged
ahcorde merged 1 commit into
ros2:rollingfrom
Tobias-Fischer:codex/robostack-rcl-yaml-param-parser-apple-once
Jul 22, 2026
Merged

ahcorde merged 1 commit into
ros2:rollingfrom
Tobias-Fischer:codex/robostack-rcl-yaml-param-parser-apple-once

Conversation

@Tobias-Fischer

Copy link
Copy Markdown
Contributor

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

This upstreams patch/ros-rolling-rcl-yaml-param-parser.patch, authored in RoboStack by wep21 <[email protected]>.

Apple platforms do not provide the C11 threads API used here on other POSIX platforms. This maps the once_flag and call_once usage to pthread_once on Apple while keeping the existing Windows and C11 threads paths unchanged.

This upstreams a RoboStack build fix from patch/ros-rolling-rcl-yaml-param-parser.patch.

Apple platforms do not provide the C11 threads API used here on other POSIX platforms. Map the once_flag and call_once usage to pthread_once on Apple while keeping the existing Windows and C11 threads paths unchanged.

Signed-off-by: Tobias Fischer <[email protected]>
@mergify

mergify Bot commented Jul 19, 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

@Tobias-Fischer

Copy link
Copy Markdown
Contributor Author

FYI @wep21 @traversaro, this is a small PR from the effort to upstream RoboStack downstream patches tracked in RoboStack/robostack#124.

@ahcorde

ahcorde commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Pulls: #1325
Gist: https://gist.githubusercontent.com/ahcorde/d9e3849ff9859e001f19c99c9d9d4146/raw/762bf57f981f05d217698435f91a3ee171871d35/ros2.repos
BUILD args: --packages-above-and-dependencies rcl
TEST args: --packages-above rcl
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/19910

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

@ahcorde
ahcorde merged commit 15aeab9 into ros2:rolling Jul 22, 2026
3 checks passed
@yukaitung

Copy link
Copy Markdown

@ahcorde Could you please backport this to Lyrical as well? Thanks.

@fujitatomoya

Copy link
Copy Markdown
Collaborator

@Mergifyio backport to lyrical

@mergify

mergify Bot commented Aug 19, 2026 •

Copy link
Copy Markdown

backport to lyrical

❌ No backport have been created

Details
  • Backport to branch to failed

GitHub error: Branch not found

fujitatomoya pushed a commit that referenced this pull request Aug 20, 2026
This upstreams a RoboStack build fix from patch/ros-rolling-rcl-yaml-param-parser.patch.

Apple platforms do not provide the C11 threads API used here on other POSIX platforms. Map the once_flag and call_once usage to pthread_once on Apple while keeping the existing Windows and C11 threads paths unchanged.



(cherry picked from commit 15aeab9)

Signed-off-by: Tobias Fischer <[email protected]>
Co-authored-by: Tobias Fischer <[email protected]>
Co-authored-by: wep21 <[email protected]>
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.

5 participants