tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pthread library related



On Wed, May 18, 2016 at 03:40:38PM -0700, Charles Cui wrote:
>    *functions with missing features*:
>    pthread_barrierattr_getpshared
>    pthread_barrierattr_setpshared

Effectively:

int pthread_barrierattr_getpshared(const pthread_barrierattr_t
       *restrict attr, int *restrict pshared)
{
	*pshared = PTHREAD_PROCESS_PRIVATE;
}

int pthread_barrierattr_setpshared(pthread_barrierattr_t *attr,
       int pshared)
{
	return EINVAL;
}


Not making this functionality optional any more is a mistake in Posix IMHO.

Martin


Home | Main Index | Thread Index | Old Index