1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00

Move __PTHREAD_SPINS definition to architecture specific header

This patch moves the __PTHREAD_SPINS definition to arch specific header
since pthread_mutex_t layout is also arch specific.  This leads to no
need to defining __PTHREAD_MUTEX_HAVE_ELISION and thus removing of the
undefined compiler warning.
This commit is contained in:
Adhemerval Zanella
2014-03-26 13:48:00 -05:00
parent de21c33c06
commit 01f8eac224
17 changed files with 79 additions and 13 deletions

View File

@@ -73,6 +73,9 @@ typedef union
long int __align;
} pthread_mutex_t;
/* Mutex __spins initializer used by PTHREAD_MUTEX_INITIALIZER. */
#define __PTHREAD_SPINS 0
typedef union
{
char __size[__SIZEOF_PTHREAD_MUTEXATTR_T];