Files
valgrind/none/tests/tls_so.c
Julian Seward 0356d27ca6 Merge in changes from the 2.4.0 line. This basically brings in the
overhaul of the thread support.  Many things are now probably broken,
but at least with --tool=none, simple and not-so-simple threaded and
non-thread programs work.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3265
2005-03-10 23:59:00 +00:00

25 lines
304 B
C

#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