[Previous] [Contents] [Next]

pthread_barrierattr_destroy()

Destroy a barrier attributes object

Synopsis:

#include <pthread.h>

int pthread_barrierattr_destroy( 
                   pthread_barrierattr_t * attr );

Library:

libc

Description:

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.

Returns:

EOK
Success.
EINVAL
Invalid barrier attribute object attr.

Classification:

POSIX 1003.1j (draft)

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

pthread_barrier_destroy(), pthread_barrierattr_getpshared(), pthread_barrierattr_init(), pthread_barrierattr_setpshared()


[Previous] [Contents] [Next]