reactor: upgrade swap to AcqRel

This commit is contained in:
Aode (lion) 2022-02-14 19:29:27 -06:00
parent f8279e2c7b
commit b92828b277

View file

@ -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);
}