Sign in
mojo
/
mojo-tools
/
17e3b04429ce6ad836128e1ceffefd85493ec779
/
.
/
fusl
/
src
/
thread
/
pthread_attr_setdetachstate.c
blob: 36f67054a8d80578288d258aa60305871ea654bf [
file
] [
log
] [
blame
]
#include
"pthread_impl.h"
int
pthread_attr_setdetachstate
(
pthread_attr_t
*
a
,
int
state
)
{
if
(
state
>
1U
)
return
EINVAL
;
a
->
_a_detach
=
state
;
return
0
;
}