Move create_unique_class util to the memory namespace
[lttng-tools.git] / src / bin / lttng-sessiond / rotation-thread.cpp
index bc7893475c13c34e816427d1d358740655c53bb3..10afaa649770139abd7d359fcb37c7114f79d0bf 100644 (file)
@@ -44,6 +44,7 @@
 #include <lttng/rotate-internal.hpp>
 #include <lttng/trigger/trigger.h>
 
+#include <fcntl.h>
 #include <inttypes.h>
 #include <memory>
 #include <signal.h>
@@ -69,7 +70,7 @@ namespace {
 struct rotation_thread_job {
        using uptr = std::unique_ptr<
                rotation_thread_job,
-               lttng::details::create_unique_class<rotation_thread_job, lttng::free>>;
+               lttng::memory::create_deleter_class<rotation_thread_job, lttng::free>::deleter>;
 
        enum ls::rotation_thread_job_type type;
        struct ltt_session *session;
@@ -395,8 +396,8 @@ void ls::rotation_thread_timer_queue_destroy(struct rotation_thread_timer_queue
 
 ls::rotation_thread::rotation_thread(rotation_thread_timer_queue& rotation_timer_queue,
                                     notification_thread_handle& notification_thread_handle) :
-       _rotation_timer_queue{ rotation_timer_queue },
-       _notification_thread_handle{ notification_thread_handle }
+       _rotation_timer_queue(rotation_timer_queue),
+       _notification_thread_handle(notification_thread_handle)
 {
        _quit_pipe.reset([]() {
                auto raw_pipe = lttng_pipe_open(FD_CLOEXEC);
This page took 0.022353 seconds and 4 git commands to generate.