summaryrefslogtreecommitdiffstats
path: root/staging_vespalib/src/vespa/vespalib/util/singleexecutor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'staging_vespalib/src/vespa/vespalib/util/singleexecutor.cpp')
-rw-r--r--staging_vespalib/src/vespa/vespalib/util/singleexecutor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/staging_vespalib/src/vespa/vespalib/util/singleexecutor.cpp b/staging_vespalib/src/vespa/vespalib/util/singleexecutor.cpp
index bf1c41350ee..791b0876c19 100644
--- a/staging_vespalib/src/vespa/vespalib/util/singleexecutor.cpp
+++ b/staging_vespalib/src/vespa/vespalib/util/singleexecutor.cpp
@@ -96,7 +96,7 @@ SingleExecutor::run_tasks_till(uint64_t available) {
while (consumed < available) {
Task::UP task = std::move(_tasks[index(consumed)]);
task->run();
- _rp.store(++consumed, std::memory_order_relaxed);
+ _rp.store(++consumed, std::memory_order_release);
if (wakeupLimit == consumed) {
MonitorGuard guard(_producerMonitor);
guard.broadcast();