Destroy a mutex
#include <threads.h> void mtx_destroy( mtx_t* mutex );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The mtx_destroy() function destroys the unlocked mutex mutex. You can destroy a locked mutex only if you're its owner.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |