Destroy a forksafe mutex
#include <forksafe_mutex.h> int forksafe_mutex_destroy( forksafe_mutex_t* mutex );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The forksafe_mutex_destroy() function destroys the unlocked forksafe mutex mutex.
You can destroy a locked mutex only if you're the owner of that mutex.
For more information about forksafe mutexes, see Using fork() in a multithreaded process in the Processes and Threads chapter of Getting Started with QNX Neutrino.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |