summaryrefslogtreecommitdiffstats
path: root/staging_vespalib
diff options
context:
space:
mode:
Diffstat (limited to 'staging_vespalib')
-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 791b0876c19..8f1f22c4f8e 100644
--- a/staging_vespalib/src/vespa/vespalib/util/singleexecutor.cpp
+++ b/staging_vespalib/src/vespa/vespalib/util/singleexecutor.cpp
@@ -59,7 +59,7 @@ SingleExecutor::setTaskLimit(uint32_t taskLimit) {
SingleExecutor &
SingleExecutor::sync() {
uint64_t wp = _wp.load(std::memory_order_relaxed);
- while (wp > _rp.load(std::memory_order_relaxed)) {
+ while (wp > _rp.load(std::memory_order_acquire)) {
std::this_thread::sleep_for(1ms);
}
return *this;