pthread_mutex_destroy()

destroy a mutex 

Function


SYNOPSIS

#include <pthread.h>

int pthread_mutex_destroy(pthread_mutex_t *mutex);


DESCRIPTION

The pthread_mutex_destroy() function destroys a previously initialized mutex. The mutex must not be used after it has been destroyed.


PARAMETERS

mutex 

Is the mutex to destroy.


RETURN VALUES

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

EINVAL 

mutex does not refer to an initialized mutex.

EFAULT 

mutex is an invalid pointer.

EBUSY 

The mutex is locked or in use by another thread (for example, in a condition wait).


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()


PTC MKS Toolkit 10.3 Documentation Build 39.