2006-07-24 Carlos O'Donell <carlos@systemhalted.org>
* sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: __SIZEOF_PTHREAD_COND_T is 64 bytes. Remove __PAD_ATOMIC_LOCK_T.
This commit is contained in:
parent
74321891c1
commit
259437280c
|
@ -1,3 +1,8 @@
|
||||||
|
2006-07-24 Carlos O'Donell <carlos@systemhalted.org>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h:
|
||||||
|
__SIZEOF_PTHREAD_COND_T is 64 bytes. Remove __PAD_ATOMIC_LOCK_T.
|
||||||
|
|
||||||
2006-07-18 Carlos O'Donell <carlos@systemhalted.org>
|
2006-07-18 Carlos O'Donell <carlos@systemhalted.org>
|
||||||
|
|
||||||
* sysdeps/hppa/nptl/pthread_spin_lock.c (pthread_spin_lock): Swap
|
* sysdeps/hppa/nptl/pthread_spin_lock.c (pthread_spin_lock): Swap
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
sizeof(pthread_mutex_t) = 0x30 (48)
|
sizeof(pthread_mutex_t) = 0x30 (48)
|
||||||
sizeof(pthread_mutexattr_t) = 0x4 (4)
|
sizeof(pthread_mutexattr_t) = 0x4 (4)
|
||||||
sizeof(pthread_cond_t) = 0x30 (48)
|
sizeof(pthread_cond_t) = 0x30 (48)
|
||||||
|
= Grew to 64 bytes in NPTL.
|
||||||
No pthread_cond_compat_t ...
|
No pthread_cond_compat_t ...
|
||||||
sizeof(pthread_condattr_t) = 0x4 (4)
|
sizeof(pthread_condattr_t) = 0x4 (4)
|
||||||
sizeof(pthread_rwlock_t) = 0x40 (64)
|
sizeof(pthread_rwlock_t) = 0x40 (64)
|
||||||
|
@ -34,7 +35,7 @@
|
||||||
#define __SIZEOF_PTHREAD_ATTR_T 36
|
#define __SIZEOF_PTHREAD_ATTR_T 36
|
||||||
#define __SIZEOF_PTHREAD_MUTEX_T 48
|
#define __SIZEOF_PTHREAD_MUTEX_T 48
|
||||||
#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
|
#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
|
||||||
#define __SIZEOF_PTHREAD_COND_T 48
|
#define __SIZEOF_PTHREAD_COND_T 64
|
||||||
#define __SIZEOF_PTHREAD_COND_COMPAT_T 12
|
#define __SIZEOF_PTHREAD_COND_COMPAT_T 12
|
||||||
#define __SIZEOF_PTHREAD_CONDATTR_T 4
|
#define __SIZEOF_PTHREAD_CONDATTR_T 4
|
||||||
#define __SIZEOF_PTHREAD_RWLOCK_T 64
|
#define __SIZEOF_PTHREAD_RWLOCK_T 64
|
||||||
|
@ -42,8 +43,6 @@
|
||||||
#define __SIZEOF_PTHREAD_BARRIER_T 48
|
#define __SIZEOF_PTHREAD_BARRIER_T 48
|
||||||
#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
|
#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
|
||||||
|
|
||||||
#define __PAD_ATOMIC_LOCK_T 12
|
|
||||||
|
|
||||||
/* Thread identifiers. The structure of the attribute type is not
|
/* Thread identifiers. The structure of the attribute type is not
|
||||||
exposed on purpose. */
|
exposed on purpose. */
|
||||||
typedef unsigned long int pthread_t;
|
typedef unsigned long int pthread_t;
|
||||||
|
@ -78,7 +77,6 @@ typedef union
|
||||||
struct __pthread_mutex_s
|
struct __pthread_mutex_s
|
||||||
{
|
{
|
||||||
int __lock;
|
int __lock;
|
||||||
char __size[__PAD_ATOMIC_LOCK_T];
|
|
||||||
unsigned int __count;
|
unsigned int __count;
|
||||||
int __owner;
|
int __owner;
|
||||||
/* KIND must stay at this position in the structure to maintain
|
/* KIND must stay at this position in the structure to maintain
|
||||||
|
@ -109,7 +107,6 @@ typedef union
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
int __lock;
|
int __lock;
|
||||||
char __size[__PAD_ATOMIC_LOCK_T];
|
|
||||||
unsigned int __futex;
|
unsigned int __futex;
|
||||||
__extension__ unsigned long long int __total_seq;
|
__extension__ unsigned long long int __total_seq;
|
||||||
__extension__ unsigned long long int __wakeup_seq;
|
__extension__ unsigned long long int __wakeup_seq;
|
||||||
|
@ -145,7 +142,6 @@ typedef union
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
int __lock;
|
int __lock;
|
||||||
char __size[__PAD_ATOMIC_LOCK_T];
|
|
||||||
unsigned int __nr_readers;
|
unsigned int __nr_readers;
|
||||||
unsigned int __readers_wakeup;
|
unsigned int __readers_wakeup;
|
||||||
unsigned int __writer_wakeup;
|
unsigned int __writer_wakeup;
|
||||||
|
|
Loading…
Reference in a new issue