From: Jérémie Galarneau Date: Thu, 20 Apr 2023 15:47:22 +0000 (-0400) Subject: Clean-up: rotation-thread: disable move and copy X-Git-Url: https://git.liburcu.org/?p=lttng-tools.git;a=commitdiff_plain;h=e761773d19fb4b6ccae6e1caa8d50387b30d8068 Clean-up: rotation-thread: disable move and copy Disable unused move and copy constructors and assignment operators, as reported by clang-tidy. Signed-off-by: Jérémie Galarneau Change-Id: I610e60dd082bc7c552a6f304ea44e9970487e558 --- 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. */