aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/copyable_atomic.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-10-06 22:58:54 +0400
committerRiccardo Spagni <ric@spagni.net>2017-10-06 22:58:54 +0400
commite8a7291d1283f26a33b0250cbd125b000e6e3b7f (patch)
tree822f295132ffad2766de07a1a9ca52e3b4d5a31a /contrib/epee/include/copyable_atomic.h
parentMerge pull request #2540 (diff)
parentconnection_context: initialize m_callback_request_count to 0 (diff)
downloadmonero-e8a7291d1283f26a33b0250cbd125b000e6e3b7f.tar.xz
Merge pull request #2541
15e62581 connection_context: initialize m_callback_request_count to 0 (moneromooo-monero) 5fa199c6 copyable_atomic: add a ctor with initial value (moneromooo-monero)
Diffstat (limited to 'contrib/epee/include/copyable_atomic.h')
-rw-r--r--contrib/epee/include/copyable_atomic.h2
1 files changed, 2 insertions, 0 deletions
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<uint32_t>(a.load())
{}
copyable_atomic& operator= (const copyable_atomic& a)