diff options
Diffstat (limited to 'staging_vespalib/src/vespa/vespalib/util/singleexecutor.h')
-rw-r--r-- | staging_vespalib/src/vespa/vespalib/util/singleexecutor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/staging_vespalib/src/vespa/vespalib/util/singleexecutor.h b/staging_vespalib/src/vespa/vespalib/util/singleexecutor.h index 5bf7ef9fe6f..0ab89355566 100644 --- a/staging_vespalib/src/vespa/vespalib/util/singleexecutor.h +++ b/staging_vespalib/src/vespa/vespalib/util/singleexecutor.h @@ -36,7 +36,7 @@ private: } uint64_t numTasks() const { - return _wp.load(std::memory_order_relaxed) - _rp.load(std::memory_order_relaxed); + return _wp.load(std::memory_order_relaxed) - _rp.load(std::memory_order_acquire); } std::atomic<uint32_t> _taskLimit; std::atomic<uint32_t> _wantedTaskLimit; |