summaryrefslogtreecommitdiffstats
path: root/staging_vespalib
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@oath.com>2020-07-02 13:02:17 +0000
committerHåvard Pettersen <havardpe@oath.com>2020-07-02 13:02:17 +0000
commit4e35fa34cfba829364c069f1be66eb15a615cbcc (patch)
treed8bd72235413e2393ba73929b033cb71ae7c068a /staging_vespalib
parentbf3726b1ba88cbe9987fea567e78de06f1bc2559 (diff)
use appropriate lock
Diffstat (limited to 'staging_vespalib')
-rw-r--r--staging_vespalib/src/vespa/vespalib/util/adaptive_sequenced_executor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/staging_vespalib/src/vespa/vespalib/util/adaptive_sequenced_executor.cpp b/staging_vespalib/src/vespa/vespalib/util/adaptive_sequenced_executor.cpp
index 8139fd6d11b..407129199e3 100644
--- a/staging_vespalib/src/vespa/vespalib/util/adaptive_sequenced_executor.cpp
+++ b/staging_vespalib/src/vespa/vespalib/util/adaptive_sequenced_executor.cpp
@@ -304,7 +304,7 @@ AdaptiveSequencedExecutor::sync()
{
BarrierCompletion barrierCompletion;
{
- auto guard = std::scoped_lock(_mutex);
+ auto guard = std::lock_guard(_mutex);
if (!_barrier.startBarrier(barrierCompletion)) {
return;
}