From 047e434ef5fd5437a74f98f63c40a77a683f7f3f Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 17 Mar 2011 20:41:37 -0400 Subject: implement robust mutexes some of this code should be cleaned up, e.g. using macros for some of the bit flags, masks, etc. nonetheless, the code is believed to be working and correct at this point. --- src/thread/pthread_mutex_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/thread/pthread_mutex_init.c') diff --git a/src/thread/pthread_mutex_init.c b/src/thread/pthread_mutex_init.c index 6e23df13..75ddf02b 100644 --- a/src/thread/pthread_mutex_init.c +++ b/src/thread/pthread_mutex_init.c @@ -3,6 +3,6 @@ int pthread_mutex_init(pthread_mutex_t *m, const pthread_mutexattr_t *a) { memset(m, 0, sizeof *m); - if (a) m->_m_type = *a & 3; + if (a) m->_m_type = *a & 7; return 0; } -- cgit v1.2.1