From 6e17b3168072ab77ed7170ab81327c017877133a Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Fri, 7 Jul 2023 10:43:09 +0100 Subject: [PATCH] refactor: Make `CCheckQueue` non-copyable and non-movable explicitly --- src/checkqueue.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/checkqueue.h b/src/checkqueue.h index f3c126e2624..a1de000714d 100644 --- a/src/checkqueue.h +++ b/src/checkqueue.h @@ -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. bool Wait() EXCLUSIVE_LOCKS_REQUIRED(!m_mutex) {