mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
refactor: Make CCheckQueue
non-copyable and non-movable explicitly
This commit is contained in:
parent
8111e74653
commit
6e17b31680
1 changed files with 7 additions and 0 deletions
|
@ -139,6 +139,13 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Since this class manages its own resources, which is a thread
|
||||||
|
// pool `m_worker_threads`, copy and move operations are not appropriate.
|
||||||
|
CCheckQueue(const CCheckQueue&) = delete;
|
||||||
|
CCheckQueue& operator=(const CCheckQueue&) = delete;
|
||||||
|
CCheckQueue(CCheckQueue&&) = delete;
|
||||||
|
CCheckQueue& operator=(CCheckQueue&&) = delete;
|
||||||
|
|
||||||
//! Wait until execution finishes, and return whether all evaluations were successful.
|
//! Wait until execution finishes, and return whether all evaluations were successful.
|
||||||
bool Wait() EXCLUSIVE_LOCKS_REQUIRED(!m_mutex)
|
bool Wait() EXCLUSIVE_LOCKS_REQUIRED(!m_mutex)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue