Sign in
cobalt
/
cobalt
/
9708d320f5c570ac1ada07d0e0136706ac0a5c29
/
.
/
third_party
/
musl
/
src
/
thread
/
pthread_barrierattr_setpshared.c
blob: c2d2929dcf8e975fd8d743800eb78dfc2be4c9db [
file
] [
log
] [
blame
]
#include
"pthread_impl.h"
int
pthread_barrierattr_setpshared
(
pthread_barrierattr_t
*
a
,
int
pshared
)
{
if
(
pshared
>
1U
)
return
EINVAL
;
a
->
__attr
=
pshared
?
INT_MIN
:
0
;
return
0
;
}