|
NAMEpthread_barrierattr_destroy ,
pthread_barrierattr_getpshared ,
pthread_barrierattr_init ,
pthread_barrierattr_setpshared —
manipulate a barrier attribute object
LIBRARYPOSIX Threads Library (libpthread, -lpthread)SYNOPSIS#include <pthread.h>
int
int
int
int
DESCRIPTIONThepthread_barrierattr_init () function will initialize
attr with default attributes. The
pthread_barrierattr_destroy () function will destroy
attr and release any resources that may have been
allocated on its behalf.
The
RETURN VALUESIf successful, all these functions will return zero. Otherwise, an error number will be returned to indicate the error.None of these functions will return
ERRORSThepthread_barrierattr_destroy (),
pthread_barrierattr_getpshared () and
pthread_barrierattr_setpshared () functions may fail
if:
The
The
SEE ALSOpthread_barrier_destroy(3), pthread_barrier_init(3), pthread_barrier_wait(3)HISTORYThepthread_barrierattr_* () functions first appeared in
N:M Threading Library (libkse, -lkse) in
FreeBSD 5.2, and in 1:1 Threading
Library (libthr, -lthr) in FreeBSD 5.3. Support
for process-shared barriers appeared in FreeBSD 11.0.
Visit the GSP FreeBSD Man Page Interface. |