Clean-up: modernize pretty_xml.cpp
[lttng-tools.git] / src / bin / lttng-sessiond / rotation-thread.hpp
index 02ff2b2fe1549baece8eb03563e5cf86fa39d658..5e9b9d75e07c6741216d75578753133cfcc127bb 100644 (file)
 namespace lttng {
 namespace sessiond {
 
-enum class rotation_thread_job_type {
-       SCHEDULED_ROTATION,
-       CHECK_PENDING_ROTATION
-};
+enum class rotation_thread_job_type { SCHEDULED_ROTATION, CHECK_PENDING_ROTATION };
 
 struct rotation_thread_timer_queue;
 
@@ -43,7 +40,11 @@ public:
        using uptr = std::unique_ptr<rotation_thread>;
 
        rotation_thread(rotation_thread_timer_queue& rotation_timer_queue,
-                              notification_thread_handle& notification_thread_handle);
+                       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. */
@@ -80,7 +81,7 @@ private:
        lttng_poll_event _events;
 };
 
-struct rotation_thread_timer_queue *rotation_thread_timer_queue_create(void);
+struct rotation_thread_timer_queue *rotation_thread_timer_queue_create();
 void rotation_thread_timer_queue_destroy(struct rotation_thread_timer_queue *queue);
 void rotation_thread_enqueue_job(struct rotation_thread_timer_queue *queue,
                                 enum rotation_thread_job_type job_type,
This page took 0.023451 seconds and 4 git commands to generate.