summaryrefslogblamecommitdiff
path: root/src/thread/pthread_mutex_init.c
blob: a7ba39baac06821a528cbd02f1b5a57e349c57d8 (plain) (tree)
1
2
3
4
5
6
7
8

                         
                                                                                          
 
                                  
                                   

                 
#include "pthread_impl.h"

int pthread_mutex_init(pthread_mutex_t *restrict m, const pthread_mutexattr_t *restrict a)
{
	*m = (pthread_mutex_t){0};
	if (a) m->_m_type = *a & 7;
	return 0;
}