Updated: April 19, 2023 |
Destroy a mutex
#include <pthread.h> int pthread_mutex_destroy( pthread_mutex_t* mutex );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The pthread_mutex_destroy() function destroys the unlocked mutex mutex.
You can destroy a locked mutex only if you're the owner of that mutex.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |