Sign in
fuchsia
/
fuchsia
/
b0ba8b34057f8cc0dd6819ccf0510c4690d82bfc
/
.
/
zircon
/
third_party
/
ulib
/
musl
/
pthread
/
pthread_barrier_init.c
blob: 1dc167b968e7c23157ce560fe4eeab03b20819ae [
file
] [
log
] [
blame
]
#include
<pthread.h>
#include
<errno.h>
int
pthread_barrier_init
(
pthread_barrier_t
*
restrict b
,
const
pthread_barrierattr_t
*
restrict a
,
unsigned
count
)
{
if
(
count
==
0
)
return
EINVAL
;
*
b
=
(
pthread_barrier_t
){.
_b_limit
=
count
};
return
0
;
}