(__pthread_list_t): New typedef.
(pthread_mutex_t): Replace __next and __prev fields with __list.
This commit is contained in:
parent
87a694c9bc
commit
b5876a1aa6
|
@ -43,6 +43,13 @@ typedef union
|
||||||
} pthread_attr_t;
|
} pthread_attr_t;
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct __pthread_internal_list
|
||||||
|
{
|
||||||
|
struct __pthread_internal_list *__prev;
|
||||||
|
struct __pthread_internal_list *__next;
|
||||||
|
} __pthread_list_t;
|
||||||
|
|
||||||
|
|
||||||
/* Data structures for mutex handling. The structure of the attribute
|
/* Data structures for mutex handling. The structure of the attribute
|
||||||
type is deliberately not exposed. */
|
type is deliberately not exposed. */
|
||||||
typedef union
|
typedef union
|
||||||
|
@ -57,8 +64,7 @@ typedef union
|
||||||
binary compatibility. */
|
binary compatibility. */
|
||||||
int __kind;
|
int __kind;
|
||||||
int __spins;
|
int __spins;
|
||||||
struct __pthread_mutex_s *__next;
|
__pthread_list_t __list;
|
||||||
struct __pthread_mutex_s *__prev;
|
|
||||||
#define __PTHREAD_MUTEX_HAVE_PREV 1
|
#define __PTHREAD_MUTEX_HAVE_PREV 1
|
||||||
} __data;
|
} __data;
|
||||||
char __size[__SIZEOF_PTHREAD_MUTEX_T];
|
char __size[__SIZEOF_PTHREAD_MUTEX_T];
|
||||||
|
|
Loading…
Reference in New Issue