You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
304 B
24 lines
304 B
#include <config.h> |
|
|
|
#ifdef HAVE_TLS |
|
#include <pthread.h> |
|
|
|
extern __thread int so_extern; |
|
static __thread int so_local; |
|
extern __thread int global; |
|
|
|
int *test_so_extern(void) |
|
{ |
|
return &so_extern; |
|
} |
|
|
|
int *test_so_local(void) |
|
{ |
|
return &so_local; |
|
} |
|
|
|
int *test_so_global(void) |
|
{ |
|
return &global; |
|
} |
|
#endif
|
|
|