| 1 | /* |
| 2 | * SPDX-License-Identifier: MIT |
| 3 | * |
| 4 | * Copyright (C) 2021 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
| 5 | */ |
| 6 | |
| 7 | #ifndef _LTTNG_UST_THREAD_H |
| 8 | #define _LTTNG_UST_THREAD_H |
| 9 | |
| 10 | #include <signal.h> |
| 11 | |
| 12 | #ifdef __cplusplus |
| 13 | extern "C" { |
| 14 | #endif |
| 15 | |
| 16 | /* |
| 17 | * Initialize this thread's LTTng-UST data structures. There is |
| 18 | * typically no need to call this, because LTTng-UST initializes its |
| 19 | * per-thread data structures lazily, but it should be called explicitly |
| 20 | * upon creation of each thread before signal handlers nesting over |
| 21 | * those threads use LTTng-UST tracepoints. |
| 22 | */ |
| 23 | void lttng_ust_init_thread(void); |
| 24 | |
| 25 | #ifdef __cplusplus |
| 26 | } |
| 27 | #endif |
| 28 | |
| 29 | #endif /* _LTTNG_UST_THREAD_H */ |