• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include "pthread_impl.h"
2 
pthread_mutex_init(pthread_mutex_t * restrict m,const pthread_mutexattr_t * restrict a)3 int pthread_mutex_init(pthread_mutex_t *restrict m, const pthread_mutexattr_t *restrict a)
4 {
5 	__builtin_memset(m, 0, sizeof(pthread_mutex_t));
6 	if (a) m->_m_type = a->__attr;
7 	return 0;
8 }
9