summaryrefslogtreecommitdiff
path: root/src/thread/pthread_barrierattr_setpshared.c
blob: c2d2929dcf8e975fd8d743800eb78dfc2be4c9db (plain) (blame)
1
2
3
4
5
6
7
8
#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;
}