reactor: upgrade swap to AcqRel
This commit is contained in:
parent
f8279e2c7b
commit
b92828b277
|
@ -151,7 +151,7 @@ impl Reactor {
|
|||
let mut context = Context::from_waker(&waker);
|
||||
|
||||
loop {
|
||||
if io_waker.woken.swap(false, Ordering::Acquire) {
|
||||
if io_waker.woken.swap(false, Ordering::AcqRel) {
|
||||
if let Poll::Ready(output) = pinned.as_mut().poll(&mut context) {
|
||||
return Ok(output);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue