X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Frotation-thread.hpp;h=5e9b9d75e07c6741216d75578753133cfcc127bb;hb=cfcb1e562fa9517544e1b2b02e73311390721f73;hp=02ff2b2fe1549baece8eb03563e5cf86fa39d658;hpb=0038180de36c422cfaeade1145fa9fbc9436b8ad;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/rotation-thread.hpp b/src/bin/lttng-sessiond/rotation-thread.hpp index 02ff2b2fe..5e9b9d75e 100644 --- a/src/bin/lttng-sessiond/rotation-thread.hpp +++ b/src/bin/lttng-sessiond/rotation-thread.hpp @@ -31,10 +31,7 @@ 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_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,