Skip to content

Commit 4b15910

Browse files
committed
Relax ordering in local_pool.rs
1 parent 4d0a2e6 commit 4b15910

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

futures-executor/src/local_pool.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn run_executor<T, F: FnMut(&mut Context<'_>) -> Poll<T>>(mut f: F) -> T {
104104

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

110110
impl LocalPool {

0 commit comments

Comments
 (0)