Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
d41cdef9198e635270d30e82be939d4ea0cbce82
/
.
/
src
/
thread
/
pthread_mutex_init.c
blob: acf45a74687bcf3d8dfb6ac7d4e9107d922b4fe2 [
file
] [
log
] [
blame
]
#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
;
}