Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
PTHREAD_BARRIERATTR... FreeBSD Library Functions Manual	PTHREAD_BARRIERATTR...

NAME
     pthread_barrierattr_getpshared, pthread_barrierattr_setpshared -- get and
     set the process-shared attribute of the barrier attribute's object

SYNOPSIS
     #include <pthread.h>

     int
     pthread_barrierattr_getpshared(pthread_barrierattr_t *attr,
	 int *pshared);

     int
     pthread_barrierattr_setpshared(pthread_barrierattr_t *attr, int pshared);

DESCRIPTION
     The pthread_barrierattr_getpshared() function writes in pshared the cur-
     rent process-shared attribute value.

     The pthread_barrierattr_setpshared() function sets	the process-shared at-
     tribute as	indicated in pshared.

RETURN VALUES
     If	successful, pthread_barrierattr_getpshared() and
     pthread_barrierattr_setpshared() will return zero,	otherwise an error
     number will be returned to	indicate the error.

ERRORS
     pthread_barrierattr_getpshared() will fail	if:

     [EINVAL]		The value specified by attr is invalid.

     pthread_barrierattr_setpshared() will fail	if:

     [EINVAL]		The value specified by attr is invalid.

     [ENOTSUP]		The value specified by pshared is not
			PTHREAD_PROCESS_PRIVATE.

SEE ALSO
     pthread_barrier_init(3), pthread_barrier_wait(3),
     pthread_barrierattr_init(3)

STANDARDS
     pthread_barrierattr_getpshared() and pthread_barrierattr_setpshared()
     conform to	IEEE Std 1003.1-2008 ("POSIX.1").

BUGS
     Currently only private barriers are supported and the pshared attribute
     is	always set that	way.  Any attempts to change that value	will trigger
     ENOTSUP.

FreeBSD	13.0			 April 6, 2020			  FreeBSD 13.0

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | ERRORS | SEE ALSO | STANDARDS | BUGS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=pthread_barrierattr_getpshared&sektion=3&manpath=OpenBSD+6.9>

home | help