mirror of git://git.musl-libc.org/musl
implement barrier attribute functions (essentially no-ops)
This commit is contained in:
parent
8c967b9386
commit
951e764091
|
@ -0,0 +1,6 @@
|
|||
#include "pthread_impl.h"
|
||||
|
||||
int pthread_barrierattr_destroy(pthread_barrierattr_t *a)
|
||||
{
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
#include "pthread_impl.h"
|
||||
|
||||
int pthread_barrierattr_getpshared(const pthread_barrierattr_t *a, int *pshared)
|
||||
{
|
||||
*pshared = *a;
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
#include "pthread_impl.h"
|
||||
|
||||
int pthread_barrierattr_init(pthread_barrierattr_t *a)
|
||||
{
|
||||
memset(a, 0, sizeof *a);
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
#include "pthread_impl.h"
|
||||
|
||||
int pthread_barrierattr_setpshared(pthread_barrierattr_t *a, int pshared)
|
||||
{
|
||||
*a = !!pshared;
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue