diff options
-rw-r--r-- | vespalib/src/vespa/vespalib/util/count_down_latch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/util/count_down_latch.h b/vespalib/src/vespa/vespalib/util/count_down_latch.h index ee299ef2d21..613a60e90c5 100644 --- a/vespalib/src/vespa/vespalib/util/count_down_latch.h +++ b/vespalib/src/vespa/vespalib/util/count_down_latch.h @@ -83,7 +83,7 @@ public: * @return current count **/ [[nodiscard]] uint32_t getCount() const noexcept { - std::unique_lock guard(_lock); + std::lock_guard guard(_lock); return _count; } |