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

FreeBSD Manual Pages

  
 
  

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

NAME
     pthread_barrier_wait -- synchronize at a barrier

SYNOPSIS
     #include <pthread.h>

     int
     pthread_barrier_wait(pthread_barrier_t *barrier);

DESCRIPTION
     The pthread_barrier_wait()	function blocks	the calling thread until the
     required number of	threads	call pthread_barrier_wait(), as	specified at
     the object's initialization.

RETURN VALUES
     If	successful, pthread_barrier_wait() returns
     PTHREAD_BARRIER_SERIAL_THREAD for a single	arbitrary thread and zero for
     each of the other threads;	otherwise an error number is returned to indi-
     cate the error.

ERRORS
     pthread_barrier_wait() will fail if:

     [EINVAL]		The value specified by barrier is invalid.

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

STANDARDS
     pthread_barrier_wait() conforms to	IEEE Std 1003.1-2008 ("POSIX.1").

FreeBSD	13.0			 April 6, 2020			  FreeBSD 13.0

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

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

home | help