[Previous] [Contents] [Next]

pthread_mutex_destroy()

Destroy mutex

Synopsis:

#include <pthread.h>

int pthread_mutex_destroy( pthread_mutex_t* mutex );

Library:

libc

Description:

The pthread_mutex_destroy() function destroys the mutex mutex. A destroyed mutex may not be reused unless the mutex is reinitialized using pthread_mutex_init().

Returns:

EOK
Success.
EBUSY
The mutex is locked.
EINVAL
Invalid mutex mutex.

Classification:

POSIX 1003.1 (Threads)

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

See also:

pthread_mutex_init(), SyncDestroy()


[Previous] [Contents] [Next]