implement barrier attribute functions (essentially no-ops)

This commit is contained in:
Rich Felker 2011-03-07 15:42:52 -05:00
parent 8c967b9386
commit 951e764091
4 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,6 @@
#include "pthread_impl.h"
int pthread_barrierattr_destroy(pthread_barrierattr_t *a)
{
return 0;
}

View File

@ -0,0 +1,7 @@
#include "pthread_impl.h"
int pthread_barrierattr_getpshared(const pthread_barrierattr_t *a, int *pshared)
{
*pshared = *a;
return 0;
}

View File

@ -0,0 +1,7 @@
#include "pthread_impl.h"
int pthread_barrierattr_init(pthread_barrierattr_t *a)
{
memset(a, 0, sizeof *a);
return 0;
}

View File

@ -0,0 +1,7 @@
#include "pthread_impl.h"
int pthread_barrierattr_setpshared(pthread_barrierattr_t *a, int pshared)
{
*a = !!pshared;
return 0;
}