fix stale locks left behind when pthread_create fails
[musl] / src / thread / pthread_cond_wait.c
index eb70e5f..8735bf1 100644 (file)
@@ -1,6 +1,6 @@
 #include "pthread_impl.h"
 
-int pthread_cond_wait(pthread_cond_t *c, pthread_mutex_t *m)
+int pthread_cond_wait(pthread_cond_t *restrict c, pthread_mutex_t *restrict m)
 {
        return pthread_cond_timedwait(c, m, 0);
 }