Use initial-exec TLS model
[lttng-ust.git] / liblttng-ust-java-agent / jni / common / lttng_ust_context.h
CommitLineData
8ab5c06b
AM
1/*
2 * Copyright (C) 2016 - EfficiOS Inc., Alexandre Montplaisir <alexmonthy@efficios.com>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; only
7 * version 2.1 of the License.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19#ifndef LIBLTTNG_UST_JAVA_AGENT_JNI_COMMON_LTTNG_UST_CONTEXT_H_
20#define LIBLTTNG_UST_JAVA_AGENT_JNI_COMMON_LTTNG_UST_CONTEXT_H_
21
553bbf7f
MD
22#include <urcu/tls-compat.h>
23
b1ca4c5f 24struct lttng_ust_jni_ctx_entry;
8ab5c06b
AM
25
26struct lttng_ust_jni_tls {
b1ca4c5f
AM
27 struct lttng_ust_jni_ctx_entry *ctx_entries;
28 int32_t ctx_entries_len;
29 signed char *ctx_strings;
30 int32_t ctx_strings_len;
8ab5c06b
AM
31};
32
553bbf7f 33extern DECLARE_URCU_TLS(struct lttng_ust_jni_tls, lttng_ust_context_info_tls);
8ab5c06b
AM
34
35#endif /* LIBLTTNG_UST_JAVA_AGENT_JNI_COMMON_LTTNG_UST_CONTEXT_H_ */
This page took 0.024111 seconds and 4 git commands to generate.