X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Ftimer.h;h=c958794848b4138b351a35cc64fa30c9bd2bb40d;hp=83be4873ce3381942b0e69ea878331dbbe088109;hb=eb2827a4f0ccc637bf1d42edebf2607dbea80428;hpb=8e319828707210e48a5f3e74495881594dba73e8 diff --git a/src/bin/lttng-sessiond/timer.h b/src/bin/lttng-sessiond/timer.h index 83be4873c..c95879484 100644 --- a/src/bin/lttng-sessiond/timer.h +++ b/src/bin/lttng-sessiond/timer.h @@ -1,25 +1,16 @@ /* - * Copyright (C) 2017 - Julien Desfossez - * Copyright (C) 2018 - Jérémie Galarneau + * 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. + * SPDX-License-Identifier: GPL-2.0-only * - * 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 SESSIOND_TIMER_H #define SESSIOND_TIMER_H #include +#include #include "session.h" @@ -28,9 +19,6 @@ struct timer_thread_parameters { }; int timer_signal_init(void); -void *timer_thread_func(void *data); - -void timer_exit(void); /* Start a session's rotation pending check timer (one-shot mode). */ int timer_session_rotation_pending_check_start(struct ltt_session *session, @@ -44,4 +32,7 @@ int timer_session_rotation_schedule_timer_start(struct ltt_session *session, /* Stop a session's rotation schedule timer. */ int timer_session_rotation_schedule_timer_stop(struct ltt_session *session); +bool launch_timer_thread( + struct timer_thread_parameters *timer_thread_parameters); + #endif /* SESSIOND_TIMER_H */