Destroys a mutex.
tis_mutex_destroy( mutex );
Argument Data Type Accessmutex opaque pthread_mutex_t write
#includeint tis_mutex_destroy ( pthread_mutex_t *mutex);
It is safe to destroy an initialized mutex that is unlocked. However, it is illegal to destroy a locked mutex.
The results of this routine are unpredictable if the mutex object specified in the mutex argument does not currently exist, or is not initialized.
Return Description0 Successful completion. [EBUSY] An attempt is made to destroy the object referenced by mutex while it is locked or referenced. [EINVAL] The value specified by mutex is invalid. [EPERM] The caller does not have privileges to perform the operation.
tis_mutex_init tis_mutex_lock tis_mutex_trylock tis_mutex_unlock