Sign in
mojo
/
mojo-tools
/
4ade0ed278a8a25b32ded431c3c7859899115b53
/
.
/
fusl
/
src
/
thread
/
pthread_mutex_init.c
blob: dad438ce620df86b4fde45137bf27dbfba2e0cda [
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
;
}