Files
musl/src/thread/pthread_mutex_init.c

9 lines
190 B
C
Raw Normal View History

2011-02-12 00:22:29 -05:00
#include "pthread_impl.h"
int pthread_mutex_init(pthread_mutex_t *restrict m, const pthread_mutexattr_t *restrict a)
2011-02-12 00:22:29 -05:00
{
*m = (pthread_mutex_t){0};
if (a) m->_m_type = *a & 7;
2011-02-12 00:22:29 -05:00
return 0;
}