From 93cc986ab37b14f8c6b624439ce2a2beca7b3cf7 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 17 Mar 2011 13:17:15 -0400 Subject: [PATCH] reorder mutex struct fields to make room for pointers (upcoming robust mutexes) the layout has been chosen so that pointer slots 3 and 4 fit between the integer slots on 32-bit archs, and come after the integer slots on 64-bit archs. --- src/internal/pthread_impl.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index 102413f5..9d56e8fa 100644 --- a/src/internal/pthread_impl.h +++ b/src/internal/pthread_impl.h @@ -47,7 +47,9 @@ struct pthread { #define _m_type __u.__i[0] #define _m_lock __u.__i[1] #define _m_waiters __u.__i[2] -#define _m_count __u.__i[4] +#define _m_prev __u.__p[3] +#define _m_next __u.__p[4] +#define _m_count __u.__i[5] #define _c_block __u.__i[0] #define _c_clock __u.__i[1] #define _rw_wrlock __u.__i[0] -- 2.25.1