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

"This will try multiple times until it succeeds" #11

Open
remram44 opened this issue Oct 15, 2019 · 0 comments
Open

"This will try multiple times until it succeeds" #11

remram44 opened this issue Oct 15, 2019 · 0 comments

Comments

@remram44
Copy link

Is this accurate? It seems to simply rely on the atomic_xchg intrinsics, and not implement any kind of re-trying to block on the atom like the docstring suggests.

atom/src/lib.rs

Lines 64 to 66 in 2a606a0

/// Swap a new value into the Atom, This will try multiple
/// times until it succeeds. The old value will be returned.
pub fn swap(&self, v: P, order: Ordering) -> Option<P> {

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