pthread_mutexattr_destroy()

destroy mutex attribute object 

Function


SYNOPSIS

#include <pthread.h>

int pthread_mutexattr_destroy(pthread_mutexattr_t *attr);


DESCRIPTION

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


PARAMETERS

attr 

Is a mutex attribute object.


RETURN VALUES

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

EINVAL 

attr does not refer to an initialized mutex attribute object.

EFAULT 

attr is an invalid pointer.


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_mutex_init(), pthread_mutexattr_init()


PTC MKS Toolkit 10.5 Documentation Build 40.