Destroy a barrier object
#include <pthread.h> int pthread_barrier_destroy( pthread_barrier_t * barrier );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The pthread_barrier_destroy() function destroys the barrier referenced by barrier and releases any resources used by the barrier. Before you reuse the barrier, you must reinitialize it by calling pthread_barrier_init().
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |