pthread_attr_destroy()

destroy thread attribute object 

Function


SYNOPSIS

#include <pthread.h>

int pthread_attr_destroy(pthread_attr_t *attr);


DESCRIPTION

The pthread_attr_destroy() function destroys a previously initialized thread attribute object. The attribute object may not be reused until it is reinitialized.


PARAMETERS

attr 

Is a thread attribute object.


RETURN VALUES

On success, pthread_attr_destroy() return 0. On error, one of the following values is returned:

EFAULT 

attr is an invalid pointer.

EINVAL 

attr does not refer to an initialized thread attribute object.


CONFORMANCE

POSIX P1003.1 (1996)


MULTITHREAD SAFETY LEVEL

MT-safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
pthread_attr_init(), pthread_create()


PTC MKS Toolkit 10.4 Documentation Build 39.