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

atomic: add some short atomic alias helpers #452

Merged
merged 3 commits into from
Jul 21, 2022
Merged

atomic: add some short atomic alias helpers #452

merged 3 commits into from
Jul 21, 2022

Conversation

sreimers
Copy link
Member

@sreimers sreimers commented Jul 21, 2022

Adding some shortcuts like re_atomic_weak makes code more readable.

Full version:

while (re_atomic_load(&run, re_memory_order_relaxed)) {

Shortcut:

while (re_atomic_weak(&run)) {

@sreimers sreimers merged commit 1f065df into main Jul 21, 2022
@sreimers sreimers deleted the atomic_weak branch July 21, 2022 13:32
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.

1 participant