The pthread_mutex_destroy function

Name

pthread_mutex_destroy -- 

Synopsis

#include <pthread.h>

int pthread_mutex_destroy (pthread_mutex_t *mutex);

Description

The pthread_mutex_destroy function destroys the given mutex. If the mutex is already destroyed, then errno is set to EINVAL. If the mutex is locked, then errno is set to EBUSY.

Returns

The pthread_mutex_destroy function returns zero if the call is successful, otherwise it sets errno and returns -1.

Implementation Notes

None