Destroy a barrier attributes object
#include <pthread.h>
int pthread_barrierattr_destroy(
pthread_barrierattr_t * attr );
libc
The pthread_barrierattr_destroy() function destroys the barrier attributes object attr. Subsequent use of the object is undefined until the object is reinitialized by another call to pthread_barrierattr_init().
Once a barrier attributes object has been used to initialize one or more barriers, any function that affects the attributes object (including destruction) doesn't affect any previously initialized barriers.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
pthread_barrier_destroy(), pthread_barrierattr_getpshared(), pthread_barrierattr_init(), pthread_barrierattr_setpshared()