ado_mutex_unlock()

Unlock a mutex

Synopsis:

#include <audio_driver.h>

#define ado_mutex_unlock( mutex )

Arguments:

mutex
The mutex to unlock. The mutex is of type pthread_mutex_t *.

Description:

The ado_mutex_unlock() macro unlocks the given mutex.

This macro is defined as pthread_mutex_unlock(), or ado_mutex_unlock_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.

Returns:

Same as pthread_mutex_unlock():

EOK
Success.
EINVAL
The given mutex is invalid.
EPERM
The current thread doesn't own mutex.

Classification:

QNX Neutrino

Safety:
Cancellation point No
Interrupt handler No
Signal handler No
Thread No

See also:

ado_mutex_destroy(), ado_mutex_init(), ado_mutex_lock()

pthread_mutex_unlock() in the QNX Library Reference