blob: b83edd0f8dedf7d05ca51b3e3bc58602353a63ee (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
#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;
if (m->_m_type & 4) m->_m_type |= 128U;
return 0;
}
|