diff --git a/emper/sleep_strategy/PipeSleepStrategy.cpp b/emper/sleep_strategy/PipeSleepStrategy.cpp index 5078b1a8d65499dd2063c139231f931fb1508dec..a830730be656fa5bfea894165e9909a15f4fd933 100644 --- a/emper/sleep_strategy/PipeSleepStrategy.cpp +++ b/emper/sleep_strategy/PipeSleepStrategy.cpp @@ -126,7 +126,7 @@ void PipeSleepStrategy::sleep() { // Before going to sleep prevent the completer from reaping completions // on our IoContext otherwise we would neither safely wakeup nor reset // the waitInflight flag. - io.waitInflight.store(true, std::memory_order_acquire); + io.waitInflight.store(true, std::memory_order_release); LOGD("set waitinflight"); if constexpr (IoContext::needsCqLock) {