diff options
| author | Khem Raj <kraj@mvista.com> | 2008-12-10 04:39:44 +0000 |
|---|---|---|
| committer | Khem Raj <kraj@mvista.com> | 2008-12-10 04:39:44 +0000 |
| commit | a29f11cc811aecaa2474af413064afca961b081e (patch) | |
| tree | 6862614ba98532a1a94c167920df67ce8afa1d08 /libpthread/nptl/sysdeps/unix/sysv/linux/i386 | |
| parent | 4832b60988d116c0d59d46b63439da59058f2a98 (diff) | |
| download | uClibc-alpine-a29f11cc811aecaa2474af413064afca961b081e.tar.bz2 uClibc-alpine-a29f11cc811aecaa2474af413064afca961b081e.tar.xz | |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Update pthread_mutex_t definition and initializations.
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/i386')
| -rw-r--r-- | libpthread/nptl/sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h index 4d1c9450b..0ec6e5534 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h @@ -43,11 +43,17 @@ typedef union } pthread_attr_t; +typedef struct __pthread_internal_slist +{ + struct __pthread_internal_slist *__next; +} __pthread_slist_t; + + /* Data structures for mutex handling. The structure of the attribute type is not exposed on purpose. */ typedef union { - struct + struct __pthread_mutex_s { int __lock; unsigned int __count; @@ -56,7 +62,11 @@ typedef union binary compatibility. */ int __kind; unsigned int __nusers; - int __spins; + __extension__ union + { + int __spins; + __pthread_slist_t __list; + }; } __data; char __size[__SIZEOF_PTHREAD_MUTEX_T]; long int __align; |
