Sign in
mojo
/
mojo-tools
/
862d13b6f591fb83034e80ed5a8c59fb9d0b7b56
/
.
/
fusl
/
src
/
thread
/
pthread_mutexattr_setrobust.c
blob: 2deef1d5820126ff7c081f47e8e19f5da95ed531 [
file
] [
log
] [
blame
]
#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
;
}