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

Merge branch 'fix-atomic-op' into 'master'

[PipeSleepStrategy] Fix memory_order of atomic.store()

See merge request i4/manycore/emper!306
parents 45db13b5 32886a23
No related branches found
No related tags found
No related merge requests found
...@@ -126,7 +126,7 @@ void PipeSleepStrategy::sleep() { ...@@ -126,7 +126,7 @@ void PipeSleepStrategy::sleep() {
// Before going to sleep prevent the completer from reaping completions // Before going to sleep prevent the completer from reaping completions
// on our IoContext otherwise we would neither safely wakeup nor reset // on our IoContext otherwise we would neither safely wakeup nor reset
// the waitInflight flag. // the waitInflight flag.
io.waitInflight.store(true, std::memory_order_acquire); io.waitInflight.store(true, std::memory_order_release);
LOGD("set waitinflight"); LOGD("set waitinflight");
if constexpr (IoContext::needsCqLock) { 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