X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=include%2Flttng%2Fust-thread.h;fp=include%2Flttng%2Fust-thread.h;h=2c84ae76ca9dfe6c81d6c1c75f8e8313c9ae2140;hb=14e0a13576200091ccaba54c89692ee21672a700;hp=0000000000000000000000000000000000000000;hpb=b89c5899ef86060111a6814c13df2684dc352737;p=lttng-ust.git diff --git a/include/lttng/ust-thread.h b/include/lttng/ust-thread.h new file mode 100644 index 00000000..2c84ae76 --- /dev/null +++ b/include/lttng/ust-thread.h @@ -0,0 +1,29 @@ +/* + * SPDX-License-Identifier: MIT + * + * Copyright (C) 2021 Mathieu Desnoyers + */ + +#ifndef _LTTNG_UST_THREAD_H +#define _LTTNG_UST_THREAD_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Initialize this thread's LTTng-UST data structures. There is + * typically no need to call this, because LTTng-UST initializes its + * per-thread data structures lazily, but it should be called explicitly + * upon creation of each thread before signal handlers nesting over + * those threads use LTTng-UST tracepoints. + */ +void lttng_ust_init_thread(void); + +#ifdef __cplusplus +} +#endif + +#endif /* _LTTNG_UST_THREAD_H */