reject invalid arguments to pthread_barrierattr_setpshared
this is a POSIX requirement.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
int pthread_barrierattr_setpshared(pthread_barrierattr_t *a, int pshared)
|
||||
{
|
||||
if (pshared > 1U) return EINVAL;
|
||||
a->__attr = pshared ? INT_MIN : 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user