summaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-03-17 13:17:15 -0400
committerRich Felker <dalias@aerifal.cx>2011-03-17 13:17:15 -0400
commit93cc986ab37b14f8c6b624439ce2a2beca7b3cf7 (patch)
tree3086c1a955a3b90be29d9dd31030465ea07a99d1 /src/internal
parentb1c43161c2b37e35eae60fa61621a24a5d820d83 (diff)
downloadmusl-93cc986ab37b14f8c6b624439ce2a2beca7b3cf7.tar.gz
musl-93cc986ab37b14f8c6b624439ce2a2beca7b3cf7.tar.bz2
musl-93cc986ab37b14f8c6b624439ce2a2beca7b3cf7.tar.xz
musl-93cc986ab37b14f8c6b624439ce2a2beca7b3cf7.zip
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.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/pthread_impl.h4
1 files changed, 3 insertions, 1 deletions
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]