[Previous] [Contents] [Next]

pthread_attr_destroy()

Destroy thread attribute object

Synopsis:

#include <pthread.h>

int pthread_attr_destroy( pthread_attr_t * attr );

Library:

libc

Description:

The pthread_attr_destroy() function destroys the thread attribute object attr. The attribute object shouldn't be reused unless it's reinitialized using pthread_attr_init().

The resulting attributes object (possibly modified by setting individual attribute values), when used by pthread_create() defines the attributes of the thread created. A single attributes object can be used in multiple simultaneous calls to pthread_create(). The effect of initializing an already initialized thread attributes object is undefined.

Returns:

0 for success, or an error number.

Errors:

EOK
Success.

Classification:

POSIX 1003.1 (Threads)

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

See also:

pthread_attr_init(), pthread_create()


[Previous] [Contents] [Next]