summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-06-14 09:57:50 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2022-07-04 16:06:47 +0200
commit51f386261e426be1e7691effd3a19a4d2ec67a6c (patch)
treec0b9e07e2c4b6761f8bbb9fd6cefd177def6ec39
parent1412b4c7b1d3e50f296eae188b62bf9623e81288 (diff)
downloadjustbuild-51f386261e426be1e7691effd3a19a4d2ec67a6c.tar.gz
Drop copy constructor from atomic value
-rw-r--r--src/buildtool/multithreading/atomic_value.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/buildtool/multithreading/atomic_value.hpp b/src/buildtool/multithreading/atomic_value.hpp
index 2c108a96..5cef8a65 100644
--- a/src/buildtool/multithreading/atomic_value.hpp
+++ b/src/buildtool/multithreading/atomic_value.hpp
@@ -12,8 +12,7 @@ template <class T>
class AtomicValue {
public:
AtomicValue() noexcept = default;
- AtomicValue(AtomicValue const& other) noexcept
- : data_{other.data_.load()} {}
+ AtomicValue(AtomicValue const& other) noexcept = delete;
AtomicValue(AtomicValue&& other) noexcept : data_{other.data_.load()} {}
~AtomicValue() noexcept = default;