Fix: sessiond: fix memory leak in receive_lttng_trigger
[lttng-tools.git] / src / bin / lttng-sessiond / timer.h
... / ...
CommitLineData
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
17struct timer_thread_parameters {
18 struct rotation_thread_timer_queue *rotation_thread_job_queue;
19};
20
21int timer_signal_init(void);
22
23/* Start a session's rotation pending check timer (one-shot mode). */
24int timer_session_rotation_pending_check_start(struct ltt_session *session,
25 unsigned int interval_us);
26/* Stop a session's rotation pending check timer. */
27int timer_session_rotation_pending_check_stop(struct ltt_session *session);
28
29/* Start a session's rotation schedule timer. */
30int timer_session_rotation_schedule_timer_start(struct ltt_session *session,
31 unsigned int interval_us);
32/* Stop a session's rotation schedule timer. */
33int timer_session_rotation_schedule_timer_stop(struct ltt_session *session);
34
35bool launch_timer_thread(
36 struct timer_thread_parameters *timer_thread_parameters);
37
38#endif /* SESSIOND_TIMER_H */
This page took 0.021913 seconds and 4 git commands to generate.