Move to kernel style SPDX license identifiers
[lttng-ust.git] / liblttng-ust-libc-wrapper / lttng-ust-pthread.c
index 6554a47afe7057f3b8c2c21147574c2f77d5ad09..4875bd003ff77785676d169d88d2bfbcac36ae1b 100644 (file)
@@ -1,29 +1,15 @@
 /*
- * Copyright (C) 2013  Mentor Graphics
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
+ * SPDX-License-Identifier: LGPL-2.1-or-later
  *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
+ * Copyright (C) 2013  Mentor Graphics
  */
 
-#define _GNU_SOURCE
 /*
  * Do _not_ define _LGPL_SOURCE because we don't want to create a
  * circular dependency loop between this malloc wrapper, liburcu and
  * libc.
  */
 #include <lttng/ust-dlfcn.h>
-#include <urcu/tls-compat.h>
 #include <helper.h>
 #include <pthread.h>
 
@@ -32,7 +18,7 @@
 #define TP_IP_PARAM ip
 #include "ust_pthread.h"
 
-static DEFINE_URCU_TLS_IE(int, thread_in_trace);
+static __thread int thread_in_trace;
 
 int pthread_mutex_lock(pthread_mutex_t *mutex)
 {
This page took 0.02314 seconds and 4 git commands to generate.