Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
d41cdef9198e635270d30e82be939d4ea0cbce82
/
.
/
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
;
}