aboutsummaryrefslogtreecommitdiff
path: root/src/thread/pthread_mutex_init.c
blob: 04278665e096d5c125a7618495178c517548d07c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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->__attr;
	return 0;
}


#ifdef TEST
int
main(void) {
	return 0;
}
#endif