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

Add a user-facing fence for atomics #13912

Merged
merged 2 commits into from
Aug 28, 2019
Merged

Conversation

ronawho
Copy link
Contributor

@ronawho ronawho commented Aug 28, 2019

Add atomicFence() as the user-facing fence for atomics. Like the
atomic methods, this takes a param memoryOrder and is sequentially
consistent by default. This looks like:

proc atomicFence(param order:memoryOrder = memoryOrder.seqCst) { ... }

Closes #13830
Closes https://github.com/Cray/chapel-private/issues/394

Add `atomicFence()` as the user-facing fence for atomics. Like the
atomic methods, this takes a param memoryOrder and is sequentially
consistent by default. This looks like:

```chpl
proc atomicFence(param order:memoryOrder = memoryOrder.seqCst) { ... }
```
@ronawho ronawho requested a review from mppf August 28, 2019 17:50
@ronawho ronawho merged commit e701bd9 into chapel-lang:master Aug 28, 2019
@ronawho ronawho deleted the add-atomicFence branch August 28, 2019 20:20
@ronawho ronawho mentioned this pull request Aug 28, 2019
4 tasks
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.

Add a user facing atomic fence
2 participants