mirror of
https://github.com/fluencelabs/musl
synced 2025-05-23 12:41:32 +00:00
9 lines
214 B
C
9 lines
214 B
C
|
#include "pthread_impl.h"
|
||
|
|
||
|
int pthread_barrier_init(pthread_barrier_t *b, const pthread_barrierattr_t *a, unsigned count)
|
||
|
{
|
||
|
if (!count) return EINVAL;
|
||
|
*b = (pthread_barrier_t){ .__limit = count-1 };
|
||
|
return 0;
|
||
|
}
|