Skip to content

sync.stdatomic: fix bug, add voidptr support, add swap() and compare_…#24685

Merged
spytheman merged 5 commits into
vlang:masterfrom
kbkpbot:fix-sync-stdatomic
Jun 10, 2025
Merged

sync.stdatomic: fix bug, add voidptr support, add swap() and compare_…#24685
spytheman merged 5 commits into
vlang:masterfrom
kbkpbot:fix-sync-stdatomic

Conversation

@kbkpbot

@kbkpbot kbkpbot commented Jun 10, 2025

Copy link
Copy Markdown
Contributor

…and_swap()

  1. Bug fix: add() and sub() should return atomic's previous value, not it's new value;
  2. Add voidptr type support;
  3. Add swap() and compare_and_swap() support.
  4. More tests.

@huly-for-github

Copy link
Copy Markdown

Connected to Huly®: V_0.6-23041

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Excellent work.

@spytheman

Copy link
Copy Markdown
Contributor

(the failing jobs on the CI are not related)

@spytheman spytheman merged commit 0c495d0 into vlang:master Jun 10, 2025
65 of 70 checks passed
@kbkpbot kbkpbot deleted the fix-sync-stdatomic branch June 10, 2025 10:42
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.

2 participants