Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
Developer Support
QNX Documentation Library
QNX Developer Support

QNX Developer Support

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

[Previous] [Contents] [Index] [Next]

pthread_barrier_destroy()

Destroy a barrier object

Synopsis:

#include <pthread.h>

int pthread_barrier_destroy(
       pthread_barrier_t * barrier );

Arguments:

barrier
A pointer to the pthread_barrier_t object that you want to destroy.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The pthread_barrier_destroy() function destroys the barrier referenced by barrier and releases any resources used by the barrier. Subsequent use of the barrier is undefined until you reinitialize the barrier by calling pthread_barrier_init().

Returns:

EBUSY
The barrier is in use.
EINVAL
Invalid barrier.
EOK
Success.

Classification:

POSIX 1003.1 THR BAR

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

See also:

pthread_barrier_init(), pthread_barrier_wait()


[Previous] [Contents] [Index] [Next]