Skip to content

Commit

Permalink
Relax ordering in local_pool.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Aug 14, 2022
1 parent 4d0a2e6 commit 4b15910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion futures-executor/src/local_pool.rs
Expand Up @@ -104,7 +104,7 @@ fn run_executor<T, F: FnMut(&mut Context<'_>) -> Poll<T>>(mut f: F) -> T {

/// Check for a wakeup, but don't consume it.
fn woken() -> bool {
CURRENT_THREAD_NOTIFY.with(|thread_notify| thread_notify.unparked.load(Ordering::SeqCst))
CURRENT_THREAD_NOTIFY.with(|thread_notify| thread_notify.unparked.load(Ordering::Acquire))
}

impl LocalPool {
Expand Down

0 comments on commit 4b15910

Please sign in to comment.