projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use initial-exec TLS model
[lttng-ust.git]
/
liblttng-ust-libc-wrapper
/
lttng-ust-pthread.c
diff --git
a/liblttng-ust-libc-wrapper/lttng-ust-pthread.c
b/liblttng-ust-libc-wrapper/lttng-ust-pthread.c
index 7836ffa02175d7599e4472403964b1b1069f4c33..6554a47afe7057f3b8c2c21147574c2f77d5ad09 100644
(file)
--- a/
liblttng-ust-libc-wrapper/lttng-ust-pthread.c
+++ b/
liblttng-ust-libc-wrapper/lttng-ust-pthread.c
@@
-23,6
+23,7
@@
* libc.
*/
#include <lttng/ust-dlfcn.h>
* libc.
*/
#include <lttng/ust-dlfcn.h>
+#include <urcu/tls-compat.h>
#include <helper.h>
#include <pthread.h>
#include <helper.h>
#include <pthread.h>
@@
-31,7
+32,7
@@
#define TP_IP_PARAM ip
#include "ust_pthread.h"
#define TP_IP_PARAM ip
#include "ust_pthread.h"
-static
__thread int thread_in_trace
;
+static
DEFINE_URCU_TLS_IE(int, thread_in_trace)
;
int pthread_mutex_lock(pthread_mutex_t *mutex)
{
int pthread_mutex_lock(pthread_mutex_t *mutex)
{
This page took
0.023659 seconds
and
4
git commands to generate.