Revision 4a2dd92d qemu-tls.h
b/qemu-tls.h | ||
---|---|---|
41 | 41 |
#ifdef __linux__ |
42 | 42 |
#define DECLARE_TLS(type, x) extern DEFINE_TLS(type, x) |
43 | 43 |
#define DEFINE_TLS(type, x) __thread __typeof__(type) tls__##x |
44 |
#define get_tls(x) tls__##x
|
|
44 |
#define tls_var(x) tls__##x
|
|
45 | 45 |
#else |
46 | 46 |
/* Dummy implementations which define plain global variables */ |
47 | 47 |
#define DECLARE_TLS(type, x) extern DEFINE_TLS(type, x) |
48 | 48 |
#define DEFINE_TLS(type, x) __typeof__(type) tls__##x |
49 |
#define get_tls(x) tls__##x
|
|
49 |
#define tls_var(x) tls__##x
|
|
50 | 50 |
#endif |
51 | 51 |
|
52 | 52 |
#endif |
Also available in: Unified diff