diff options
author | Tor Brede Vekterli <vekterli@yahooinc.com> | 2022-02-16 16:54:34 +0000 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@yahooinc.com> | 2022-02-16 16:54:34 +0000 |
commit | e0469912686e967b27e14431c83dae3610ee19ab (patch) | |
tree | 9bfda0e06a7094165492c960836d73a667bd081b | |
parent | 944433cb8c85b052687d26aff4dab1e3aa727e5f (diff) |
Use `lock_guard` instead of `unique_lock`
-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; } |