aboutsummaryrefslogtreecommitdiff
path: root/nptl/pthread_create.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-03-10 08:50:36 +0000
committerRoland McGrath <roland@gnu.org>2003-03-10 08:50:36 +0000
commitd4f64e1ad7d7836fbd9b01f9c5d410db930c38ce (patch)
tree9b74633f12b5a6d7d4cd277aa0b68409cb928c18 /nptl/pthread_create.c
parentf9cd7dfd6b27129e677f6526b5f86fbb11030044 (diff)
downloadglibc-d4f64e1ad7d7836fbd9b01f9c5d410db930c38ce.tar
glibc-d4f64e1ad7d7836fbd9b01f9c5d410db930c38ce.tar.gz
glibc-d4f64e1ad7d7836fbd9b01f9c5d410db930c38ce.tar.bz2
glibc-d4f64e1ad7d7836fbd9b01f9c5d410db930c38ce.zip
2003-03-10 Roland McGrath <roland@redhat.com>
* allocatestack.c (allocate_stack) [!TLS_MULTIPLE_THREADS_IN_TCB]: Instead of setting PD->multiple_threads, set globals __pthread_multiple_threads and __libc_multiple_threads. * sysdeps/pthread/createthread.c (create_thread): Likewise. * sysdeps/i386/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it. * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Likewise. * descr.h (struct pthread): Conditionalize first member on [!TLS_DTV_AT_TP]. Replace the `header' member with an anonymous union containing an anonymous tcbhead_t. Move `list' member out. [TLS_MULTIPLE_THREADS_IN_TCB]: Define a `multiple_threads' member. * allocatestack.c: Remove use of `header.data.' prefix. * pthread_create.c: Likewise. * init.c (__pthread_initialize_minimal_internal): Likewise. * sysdeps/pthread/createthread.c (create_thread): Likewise. * sysdeps/i386/tls.h (INSTALL_DTV): Add parens. (THREAD_SELF, THREAD_DTV, INSTALL_NEW_DTV): No `header.data.' prefix. * sysdeps/x86_64/tls.h: Likewise. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (SINGLE_THREAD_P): Likewise. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (SINGLE_THREAD_P): Likewise. * sysdeps/i386/tls.h (tcbhead_t): Remove `list' member. * sysdeps/s390/tls.h (tcbhead_t): Likewise.
Diffstat (limited to 'nptl/pthread_create.c')
-rw-r--r--nptl/pthread_create.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c
index 2ec70ea32e..c1da67db79 100644
--- a/nptl/pthread_create.c
+++ b/nptl/pthread_create.c
@@ -78,7 +78,7 @@ __find_in_stack_list (pd)
{
struct pthread *curp;
- curp = list_entry (entry, struct pthread, header.data.list);
+ curp = list_entry (entry, struct pthread, list);
if (curp == pd)
{
result = curp;
@@ -91,7 +91,7 @@ __find_in_stack_list (pd)
{
struct pthread *curp;
- curp = list_entry (entry, struct pthread, header.data.list);
+ curp = list_entry (entry, struct pthread, list);
if (curp == pd)
{
result = curp;
@@ -345,11 +345,11 @@ __pthread_create_2_1 (newthread, attr, start_routine, arg)
the stack freshly allocated with 'mmap'. */
/* Reference to the TCB itself. */
- pd->header.data.self = pd;
+ pd->self = pd;
#ifdef TLS_TCB_AT_TP
- /* Self-reference. */
- pd->header.data.tcb = pd;
+ /* Self-reference for TLS. */
+ pd->tcb = pd;
#endif
/* Store the address of the start routine and the parameter. Since