mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 10:37:37 -07:00
copyable_atomic: add a ctor with initial value
This commit is contained in:
parent
5f7cddeb53
commit
5fa199c652
@ -35,6 +35,8 @@ namespace epee
|
|||||||
public:
|
public:
|
||||||
copyable_atomic()
|
copyable_atomic()
|
||||||
{};
|
{};
|
||||||
|
copyable_atomic(uint32_t value)
|
||||||
|
{ store(value); }
|
||||||
copyable_atomic(const copyable_atomic& a):std::atomic<uint32_t>(a.load())
|
copyable_atomic(const copyable_atomic& a):std::atomic<uint32_t>(a.load())
|
||||||
{}
|
{}
|
||||||
copyable_atomic& operator= (const copyable_atomic& a)
|
copyable_atomic& operator= (const copyable_atomic& a)
|
||||||
|
Loading…
Reference in New Issue
Block a user