diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-03-05 21:57:44 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-03-05 21:57:44 +0000 |
commit | e8ac2c10a195bbf252204ece15e22eaf566dfba9 (patch) | |
tree | 7dd02703d0053f686aef912ebde248655c04386c /staging_vespalib | |
parent | 395e7270e0d1ccb793d499b4957c1d810e617338 (diff) |
Use aquire over relaxed.
Diffstat (limited to 'staging_vespalib')
-rw-r--r-- | staging_vespalib/src/vespa/vespalib/util/singleexecutor.cpp | 2 |
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; |