diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-05-25 02:33:13 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-05-25 02:33:13 +0200 |
commit | b428baaa85c0adca9ef4884c637f289a0ab5e2d6 (patch) | |
tree | 2b886760ce40712db7282a83dcc3957bacabd42b /pthread/pt-create.c | |
parent | 1dc7553d93bf7f48b5f767b74eab607142d77160 (diff) | |
parent | 25260994c812050a5d7addf125cdc90c911ca5c1 (diff) |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/libpthread
Diffstat (limited to 'pthread/pt-create.c')
-rw-r--r-- | pthread/pt-create.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pthread/pt-create.c b/pthread/pt-create.c index ca6b66c..4d81a95 100644 --- a/pthread/pt-create.c +++ b/pthread/pt-create.c @@ -38,8 +38,12 @@ __atomic_t __pthread_total; /* The entry-point for new threads. */ static void -entry_point (void *(*start_routine)(void *), void *arg) +entry_point (struct __pthread *self, void *(*start_routine)(void *), void *arg) { +#ifdef ENABLE_TLS + ___pthread_self = self; +#endif + #ifdef HAVE_USELOCALE /* A fresh thread needs to be bound to the global locale. */ uselocale (LC_GLOBAL_LOCALE); |