mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-21 17:42:37 +02:00
mempool: apply rule of 5 to epochguard.h, fix compiler warnings
This commit is contained in:
parent
f8b20fd35b
commit
7b3a20b260
@ -40,6 +40,9 @@ public:
|
|||||||
Epoch() = default;
|
Epoch() = default;
|
||||||
Epoch(const Epoch&) = delete;
|
Epoch(const Epoch&) = delete;
|
||||||
Epoch& operator=(const Epoch&) = delete;
|
Epoch& operator=(const Epoch&) = delete;
|
||||||
|
Epoch(Epoch&&) = delete;
|
||||||
|
Epoch& operator=(Epoch&&) = delete;
|
||||||
|
~Epoch() = default;
|
||||||
|
|
||||||
bool guarded() const { return m_guarded; }
|
bool guarded() const { return m_guarded; }
|
||||||
|
|
||||||
@ -51,6 +54,13 @@ public:
|
|||||||
// only allow modification via Epoch member functions
|
// only allow modification via Epoch member functions
|
||||||
friend class Epoch;
|
friend class Epoch;
|
||||||
Marker& operator=(const Marker&) = delete;
|
Marker& operator=(const Marker&) = delete;
|
||||||
|
|
||||||
|
public:
|
||||||
|
Marker() = default;
|
||||||
|
Marker(const Marker&) = default;
|
||||||
|
Marker(Marker&&) = delete;
|
||||||
|
Marker& operator=(Marker&&) = delete;
|
||||||
|
~Marker() = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
class SCOPED_LOCKABLE Guard
|
class SCOPED_LOCKABLE Guard
|
||||||
|
Loading…
Reference in New Issue
Block a user