diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-07-31 12:05:05 +0000 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-07-31 12:05:05 +0000 |
commit | 89ed2cccba266f7738ceb445e4d43103c08cbe75 (patch) | |
tree | dfc2afb44e0d2b7f509d1c6c37d56265db2890a4 /libpthread/nptl/sysdeps/unix/sysv/linux/sh | |
parent | ee9b77a228c7751914b0d43df9896cb98eb26a03 (diff) | |
download | uClibc-alpine-89ed2cccba266f7738ceb445e4d43103c08cbe75.tar.bz2 uClibc-alpine-89ed2cccba266f7738ceb445e4d43103c08cbe75.tar.xz |
Update sh4 pthread_mutex_t definition
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/sh')
-rw-r--r-- | libpthread/nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h b/libpthread/nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h index 5125408dc..969686dd5 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. +/* Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 2002. @@ -44,11 +44,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; @@ -57,7 +63,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; |