Sign in
mojo
/
mojo-tools
/
17e3b04429ce6ad836128e1ceffefd85493ec779
/
.
/
fusl
/
src
/
thread
/
mtx_init.c
blob: 808b056bcdc234c0c2debd2a994984e9636948a4 [
file
] [
log
] [
blame
]
#include
"pthread_impl.h"
#include
<threads.h>
int
mtx_init
(
mtx_t
*
m
,
int
type
)
{
*
m
=
(
mtx_t
){
.
_m_type
=
((
type
&
mtx_recursive
)
?
PTHREAD_MUTEX_RECURSIVE
:
PTHREAD_MUTEX_NORMAL
),
};
return
thrd_success
;
}