We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Relaxed
1 parent 78c5d85 commit f498126Copy full SHA for f498126
futures-core/src/task/__internal/atomic_waker.rs
@@ -172,7 +172,7 @@ impl AtomicWaker {
172
/// use futures::future::Future;
173
/// use futures::task::{Context, Poll, AtomicWaker};
174
/// use std::sync::atomic::AtomicBool;
175
- /// use std::sync::atomic::Ordering::SeqCst;
+ /// use std::sync::atomic::Ordering::Relaxed;
176
/// use std::pin::Pin;
177
///
178
/// struct Flag {
@@ -188,7 +188,7 @@ impl AtomicWaker {
188
/// // that would result in lost notifications.
189
/// self.waker.register(cx.waker());
190
191
- /// if self.set.load(SeqCst) {
+ /// if self.set.load(Relaxed) {
192
/// Poll::Ready(())
193
/// } else {
194
/// Poll::Pending
0 commit comments