about summary refs log tree commit diff
path: root/src/internal
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-09-22 21:08:55 -0400
committerRich Felker <dalias@aerifal.cx>2011-09-22 21:08:55 -0400
commit4b153ac42428447a148e6da543ebe6df017078db (patch)
treed9a5b8035f98b8cec47fc6044e38305ea5cdb91a /src/internal
parent2eff02e4a032323a45541c79967638d8c77d79e4 (diff)
downloadmusl-4b153ac42428447a148e6da543ebe6df017078db.tar.gz
musl-4b153ac42428447a148e6da543ebe6df017078db.tar.xz
musl-4b153ac42428447a148e6da543ebe6df017078db.zip
fix deadlock in condition wait whenever there are multiple waiters
it's amazing none of the conformance tests i've run even bothered to
check whether something so basic works...
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/pthread_impl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h
index 26164d83..d123e5e3 100644
--- a/src/internal/pthread_impl.h
+++ b/src/internal/pthread_impl.h
@@ -66,6 +66,7 @@ struct __timer {
 #define _m_count __u.__i[5]
 #define _c_block __u.__i[0]
 #define _c_clock __u.__i[1]
+#define _c_waiters __u.__i[2]
 #define _rw_lock __u.__i[0]
 #define _rw_waiters __u.__i[1]
 #define _b_inst __u.__p[0]