Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename clib atomic to stdatomic and make it more compliant with C stdatomic.h #3541

Merged

Conversation

WojciechMazur
Copy link
Contributor

  • Rename scala.scalanative.libc.atomic -> scala.scalanative.libc.stdatomic
  • Rename helper typesscala.scalanative.libc.atomic.CAtomicX -> scala.scalanative.libc.stdatomic.AtomicX
  • Add boolean variant of stdatomic ops
  • Adds more stdatomic.h types
  • Scala 3 only: add match type atomic[t] as a direct translate of std::atomic<t> resolving to stdatomic.AtomicT helpers
  • Add extension methods allowing to convert Ptr[T] to stdatomic.AtomicT using .atomic method

@WojciechMazur WojciechMazur merged commit 92d5393 into scala-native:main Oct 6, 2023
81 checks passed
@WojciechMazur WojciechMazur deleted the libc/rename-atomic-to-stdatomic branch October 6, 2023 12:33
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.

None yet

1 participant