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 operations #257

Closed
samuelpowell opened this issue Jul 21, 2016 · 1 comment
Closed

Atomic operations #257

samuelpowell opened this issue Jul 21, 2016 · 1 comment

Comments

@samuelpowell
Copy link
Member

Compat defines a no-op @threads macro when Base.Threads is unavailable.

Should we also provide fallbacks for the atomic operations in atomics.jl, viz.,

atomic_cas!,
atomic_xchg!,
atomic_add!, atomic_sub!,
atomic_and!, atomic_nand!, atomic_or!, atomic_xor!,
atomic_max!, atomic_min!,

and is it safe for these simply to revert to their non-atomic form in all circumstances?

@samuelpowell
Copy link
Member Author

Disregard, this may not be relevant as my code was not doing what I thought it was doing (JuliaLang/julia#17532).

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

No branches or pull requests

1 participant