diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-30 12:16:43 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-07 13:37:39 +0200 |
commit | ce23db59c6399199fa55b4b7dc8880522e2f1bca (patch) | |
tree | 5b77d3c84289f023cbe6f4a81cf391a0087fe660 /src/utils/cpp/atomic.hpp | |
parent | e5d7cb5ce5b9cc40b0c56b18980a4234118c1739 (diff) | |
download | justbuild-ce23db59c6399199fa55b4b7dc8880522e2f1bca.tar.gz |
Enable readability-redundant-member-init check.
Diffstat (limited to 'src/utils/cpp/atomic.hpp')
-rw-r--r-- | src/utils/cpp/atomic.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/cpp/atomic.hpp b/src/utils/cpp/atomic.hpp index b610a350..ec1c7dc0 100644 --- a/src/utils/cpp/atomic.hpp +++ b/src/utils/cpp/atomic.hpp @@ -88,8 +88,8 @@ class atomic { private: std::atomic<T> value_{}; - mutable std::shared_mutex mutex_{}; - mutable std::condition_variable_any cv_{}; + mutable std::shared_mutex mutex_; + mutable std::condition_variable_any cv_; }; // Atomic shared_pointer with notify/wait capabilities. @@ -134,8 +134,8 @@ class atomic_shared_ptr { private: ptr_t value_{}; - mutable std::shared_mutex mutex_{}; - mutable std::condition_variable_any cv_{}; + mutable std::shared_mutex mutex_; + mutable std::condition_variable_any cv_; }; #endif // INCLUDED_SRC_UTILS_CPP_ATOMIC_HPP |