pthread_barrier_destroy(3) - NetBSD Manual Pages

PTHREAD_BARRIER_DEST... NetBSD Library Functions ManualPTHREAD_BARRIER_DEST...


NAME
pthread_barrier_destroy -- destroy a barrier
LIBRARY
POSIX Threads Library (libpthread, -lpthread)
SYNOPSIS
#include <pthread.h> int pthread_barrier_destroy(pthread_barrier_t *barrier);
DESCRIPTION
The pthread_barrier_destroy() function causes the resources allocated to barrier to be released. No threads should be blocked on barrier.
RETURN VALUES
If successful, pthread_barrier_destroy() will return zero. Otherwise an error value will be returned.
ERRORS
pthread_barrier_destroy() may fail if: [EBUSY] The barrier still has active threads associated with it. [EINVAL] The value specified by barrier is invalid.
SEE ALSO
pthread_barrier_init(3), pthread_barrier_wait(3), pthread_barrierattr_destroy(3), pthread_barrierattr_init(3)
STANDARDS
pthread_barrier_destroy() conforms to IEEE Std 1003.1-2001 (``POSIX.1''). NetBSD 5.1.2 January 30, 2003 NetBSD 5.1.2

Powered by man-cgi (2024-08-26). Maintained for NetBSD by Kimmo Suominen. Based on man-cgi by Panagiotis Christias.