![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
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 only destroy a locked mutex provided you're the owner of that mutex.
![]() |
Once you've destroyed a mutex, don't reuse it without reinitializing it by calling pthread_mutex_init(). |
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
pthread_mutex_init(), SyncDestroy(), SyncMutexRevive()
![]() |
![]() |
![]() |
![]() |