diff options
author | Roland McGrath <roland@gnu.org> | 2003-03-14 22:34:02 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2003-03-14 22:34:02 +0000 |
commit | 55c11fbdb046ec06fb9f9bca2ae772a413354c74 (patch) | |
tree | 30c4b798aab9a3c4dded8a7332367f229d91f8a0 /nptl/sysdeps/pthread/createthread.c | |
parent | 0eb18281696aa6c39d906cba552ce5438134b4e7 (diff) | |
download | glibc-55c11fbdb046ec06fb9f9bca2ae772a413354c74.tar.gz glibc-55c11fbdb046ec06fb9f9bca2ae772a413354c74.tar.xz glibc-55c11fbdb046ec06fb9f9bca2ae772a413354c74.zip |
2003-03-14 Roland McGrath <roland@redhat.com>
* descr.h (struct pthread): Move the union out of [!TLS_DTV_AT_TP], so we always define the padding space. [!TLS_DTV_AT_TP]: Give tcbhead_t field a name, `header', since GCC stopped supporting its own extensions fully. [TLS_MULTIPLE_THREADS_IN_TCB]: Put `multiple_threads' inside a wrapper struct also called `header', so `header.multiple_threads' is the field name to use on all machines. * allocatestack.c (allocate_stack): Use `header.' prefix. * sysdeps/pthread/createthread.c (create_thread): Likewise. * pthread_create.c (__pthread_create_2_1): Likewise. * sysdeps/i386/tls.h (INSTALL_NEW_DTV, THREAD_DTV): Likewise. (THREAD_SELF): Likewise. * 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/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (SINGLE_THREAD_P): Likewise.
Diffstat (limited to 'nptl/sysdeps/pthread/createthread.c')
-rw-r--r-- | nptl/sysdeps/pthread/createthread.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nptl/sysdeps/pthread/createthread.c b/nptl/sysdeps/pthread/createthread.c index 4ee92afec4..797176d0b6 100644 --- a/nptl/sysdeps/pthread/createthread.c +++ b/nptl/sysdeps/pthread/createthread.c @@ -55,7 +55,7 @@ create_thread (struct pthread *pd, STACK_VARIABLES_PARMS) #endif #ifdef TLS_TCB_AT_TP - assert (pd->tcb != NULL); + assert (pd->header.tcb != NULL); #endif if (__builtin_expect (THREAD_GETMEM (THREAD_SELF, report_events), 0)) @@ -85,7 +85,7 @@ create_thread (struct pthread *pd, STACK_VARIABLES_PARMS) #ifdef TLS_MULTIPLE_THREADS_IN_TCB /* We now have for sure more than one thread. */ - pd->multiple_threads = 1; + pd->header.multiple_threads = 1; #else __pthread_multiple_threads = *__libc_multiple_threads_ptr = 1; #endif @@ -114,7 +114,7 @@ create_thread (struct pthread *pd, STACK_VARIABLES_PARMS) } #ifdef NEED_DL_SYSINFO - assert (THREAD_GETMEM (THREAD_SELF, sysinfo) == pd->sysinfo); + assert (THREAD_GETMEM (THREAD_SELF, header.sysinfo) == pd->header.sysinfo); #endif /* We rely heavily on various flags the CLONE function understands: @@ -157,7 +157,7 @@ create_thread (struct pthread *pd, STACK_VARIABLES_PARMS) #ifdef TLS_MULTIPLE_THREADS_IN_TCB /* We now have for sure more than one thread. */ - THREAD_SETMEM (THREAD_SELF, multiple_threads, 1); + THREAD_SETMEM (THREAD_SELF, header.multiple_threads, 1); #endif return 0; |