mirror of
git://sourceware.org/git/valgrind.git
synced 2026-01-12 00:19:31 +08:00
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
25 lines
304 B
C
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
|