From e761773d19fb4b6ccae6e1caa8d50387b30d8068 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 20 Apr 2023 11:47:22 -0400 Subject: [PATCH] Clean-up: rotation-thread: disable move and copy MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Disable unused move and copy constructors and assignment operators, as reported by clang-tidy. Signed-off-by: Jérémie Galarneau Change-Id: I610e60dd082bc7c552a6f304ea44e9970487e558 --- src/bin/lttng-sessiond/rotation-thread.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bin/lttng-sessiond/rotation-thread.hpp b/src/bin/lttng-sessiond/rotation-thread.hpp index daf5b5f3e..77564a168 100644 --- a/src/bin/lttng-sessiond/rotation-thread.hpp +++ b/src/bin/lttng-sessiond/rotation-thread.hpp @@ -41,6 +41,10 @@ public: rotation_thread(rotation_thread_timer_queue& rotation_timer_queue, notification_thread_handle& notification_thread_handle); + rotation_thread(const rotation_thread&) = delete; + rotation_thread(rotation_thread&&) = delete; + rotation_thread& operator=(const rotation_thread&) = delete; + rotation_thread& operator=(rotation_thread&&) = delete; ~rotation_thread(); /* Only use through the lttng_thread facilities. */ -- 2.34.1