projects
/
urcu.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
[urcu.git]
/
include
/
urcu
/
tls-compat.h
diff --git
a/include/urcu/tls-compat.h
b/include/urcu/tls-compat.h
index 8ac1ea0615ddc2eb91ee51e9e15b89bd094d4c81..3a31eeb619bec3bee3fa034c45b3faf8f7dd1a32 100644
(file)
--- a/
include/urcu/tls-compat.h
+++ b/
include/urcu/tls-compat.h
@@
-72,6
+72,9
@@
extern "C" {
# define URCU_TLS(name) (name)
# define URCU_TLS(name) (name)
+# define DEFINE_URCU_TLS_IE(type, name) \
+ CONFIG_RCU_TLS __attribute__((tls_model("initial-exec"))) type name
+
#else /* #ifndef CONFIG_RCU_TLS */
/*
#else /* #ifndef CONFIG_RCU_TLS */
/*
@@
-127,6
+130,9
@@
struct urcu_tls {
# define DEFINE_URCU_TLS(type, name) \
DEFINE_URCU_TLS_1(type, name)
# define DEFINE_URCU_TLS(type, name) \
DEFINE_URCU_TLS_1(type, name)
+# define DEFINE_URCU_TLS_IE(type, name) \
+ DEFINE_URCU_TLS_1(type, name)
+
# define URCU_TLS_1(name) (*__tls_access_ ## name())
# define URCU_TLS(name) URCU_TLS_1(name)
# define URCU_TLS_1(name) (*__tls_access_ ## name())
# define URCU_TLS(name) URCU_TLS_1(name)
This page took
0.023303 seconds
and
4
git commands to generate.