Sign in
mojo
/
mojo-tools
/
74b0cac9bdd351dc67c6fc99a7a8b64e85de2f5d
/
.
/
fusl
/
src
/
thread
/
pthread_mutexattr_setrobust.c
blob: 2deef1d5820126ff7c081f47e8e19f5da95ed531 [
file
]
#include
"pthread_impl.h"
int
pthread_mutexattr_setrobust
(
pthread_mutexattr_t
*
a
,
int
robust
)
{
if
(
robust
>
1U
)
return
EINVAL
;
a
->
__attr
&=
~
4
;
a
->
__attr
|=
robust
*
4
;
return
0
;
}