Destroy a mutex
#include <audio_driver.h> #define ado_mutex_destroy( mutex );
The ado_mutex_destroy() macro destroys the given mutex.
This macro is defined as pthread_mutex_destroy(), or ado_mutex_destroy_debug() if ADO_MUTEX_DEBUG and ADO_DEBUG are defined. The debug version uses ado_debug() to display a message to help you locate a mutex problem in the driver.
For more information, see “Debugging an audio driver” in the Organization of a Driver chapter.
Same as pthread_mutex_destroy():
QNX Neutrino
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | No |
ado_mutex_init(), ado_mutex_lock(), ado_mutex_unlock()
pthread_mutex_destroy() in the QNX Library Reference