summaryrefslogtreecommitdiff
path: root/src/utils/cpp/atomic.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/cpp/atomic.hpp')
-rw-r--r--src/utils/cpp/atomic.hpp8
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