about summary refs log tree commit diff
path: root/src/thread/pthread_mutex_init.c
blob: 6e23df139a213f64b036b901fa9f933c7cf59419 (plain) (blame)
1
2
3
4
5
6
7
8
#include "pthread_impl.h"

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;
	return 0;
}