diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-03-06 12:09:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-06 12:09:20 +0100 |
commit | cb866b015287901b7e11bbc6b4114f6c03f70aca (patch) | |
tree | d0211fa82a86ed603282dafcf73e9c130ceded36 | |
parent | 858f2dfd1edc224638187b1ead578a676c34a384 (diff) | |
parent | e8ac2c10a195bbf252204ece15e22eaf566dfba9 (diff) |
Merge pull request #12470 from vespa-engine/balder/relaxed-2-acquire
Use aquire over relaxed.
-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; |