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.
This commit is contained in:
Rich Felker committed 2011-03-17 20:41:37 -04:00
1 parent 18c7ea8055
commit 047e434ef5
10 files changed
+84 -10

No files matched your search

+1 -1
View File
@@ -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;
}