Skip to content
Snippets Groups Projects
Commit 32886a23 authored by Florian Schmaus's avatar Florian Schmaus
Browse files

[PipeSleepStrategy] Fix memory_order of atomic.store()

The memory order of stores must be one of relaxed, release, or
seq_cst. Using 'acquire' with a store is, not allowed.
parent 45db13b5
No related branches found
No related tags found
No related merge requests found
Pipeline #75577 passed
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment