Revert "Fix: sessiond: erroneous user check logic in session_access_ok"
[lttng-tools.git] / src / bin / lttng-sessiond / timer.h
1 /*
2 * Copyright (C) 2017 Julien Desfossez <jdesfossez@efficios.com>
3 * Copyright (C) 2018 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0-only
6 *
7 */
8
9 #ifndef SESSIOND_TIMER_H
10 #define SESSIOND_TIMER_H
11
12 #include <pthread.h>
13 #include <stdbool.h>
14
15 #include "session.h"
16
17 struct timer_thread_parameters {
18 struct rotation_thread_timer_queue *rotation_thread_job_queue;
19 };
20
21 int timer_signal_init(void);
22
23 /* Start a session's rotation pending check timer (one-shot mode). */
24 int timer_session_rotation_pending_check_start(struct ltt_session *session,
25 unsigned int interval_us);
26 /* Stop a session's rotation pending check timer. */
27 int timer_session_rotation_pending_check_stop(struct ltt_session *session);
28
29 /* Start a session's rotation schedule timer. */
30 int timer_session_rotation_schedule_timer_start(struct ltt_session *session,
31 unsigned int interval_us);
32 /* Stop a session's rotation schedule timer. */
33 int timer_session_rotation_schedule_timer_stop(struct ltt_session *session);
34
35 bool launch_timer_thread(
36 struct timer_thread_parameters *timer_thread_parameters);
37
38 #endif /* SESSIOND_TIMER_H */
This page took 0.029761 seconds and 4 git commands to generate.