X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbin%2Flttng-sessiond%2Frotation-thread.h;h=27ef3954e5051520fdba794f900217626effab48;hb=HEAD;hp=eb206e701ebccf7755009c4136a928e5c0a3da40;hpb=a7333da73c2083281c5ec833d041b7acf0d10d0b;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/rotation-thread.h b/src/bin/lttng-sessiond/rotation-thread.h deleted file mode 100644 index eb206e701..000000000 --- a/src/bin/lttng-sessiond/rotation-thread.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2017 - Julien Desfossez - * Copyright (C) 2018 - Jérémie Galarneau - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License, version 2 only, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 51 - * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -#ifndef ROTATION_THREAD_H -#define ROTATION_THREAD_H - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "session.h" -#include "notification-thread.h" - -extern struct lttng_notification_channel *rotate_notification_channel; - -enum rotation_thread_job_type { - ROTATION_THREAD_JOB_TYPE_SCHEDULED_ROTATION, - ROTATION_THREAD_JOB_TYPE_CHECK_PENDING_ROTATION -}; - -struct rotation_thread_timer_queue; -struct rotation_thread_handle; - -struct rotation_thread_timer_queue *rotation_thread_timer_queue_create(void); -void rotation_thread_timer_queue_destroy( - struct rotation_thread_timer_queue *queue); - -struct rotation_thread_handle *rotation_thread_handle_create( - struct rotation_thread_timer_queue *rotation_timer_queue, - struct notification_thread_handle *notification_thread_handle, - sem_t *notification_thread_ready); - -void rotation_thread_handle_destroy( - struct rotation_thread_handle *handle); - -void rotation_thread_enqueue_job(struct rotation_thread_timer_queue *queue, - enum rotation_thread_job_type job_type, uint64_t session_id); - -void *thread_rotation(void *data); - -#endif /* ROTATION_THREAD_H */