projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1c4316
)
reorder mutex struct fields to make room for pointers (upcoming robust mutexes)
author
Rich Felker
<dalias@aerifal.cx>
Thu, 17 Mar 2011 17:17:15 +0000
(13:17 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 17 Mar 2011 17:17:15 +0000
(13:17 -0400)
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
patch
|
blob
|
history
diff --git
a/src/internal/pthread_impl.h
b/src/internal/pthread_impl.h
index 102413f5b9872c15efbde5b1aa83ca0f78964321..9d56e8fad4029398266ee80cd4ecdc4afa600022 100644
(file)
--- 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]