From 5fa199c6520b21a869486618a87a370b54bcc894 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Tue, 19 Sep 2017 15:58:19 +0100 Subject: copyable_atomic: add a ctor with initial value --- contrib/epee/include/copyable_atomic.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/epee/include/copyable_atomic.h b/contrib/epee/include/copyable_atomic.h index 410b4b4ff..00a5f484b 100644 --- a/contrib/epee/include/copyable_atomic.h +++ b/contrib/epee/include/copyable_atomic.h @@ -35,6 +35,8 @@ namespace epee public: copyable_atomic() {}; + copyable_atomic(uint32_t value) + { store(value); } copyable_atomic(const copyable_atomic& a):std::atomic(a.load()) {} copyable_atomic& operator= (const copyable_atomic& a) -- cgit v1.2.3