Deletes a mutex.
cma_mutex_delete( mutex);
Argument Data Type Accessmutex opaque cma_t_mutex modify
#includevoid cma_mutex_delete ( cma_t_mutex *mutex);
After the mutex is deleted, the mutex argument is set to the value cma_c_null. Calling this routine and specifying a value of cma_c_null for the mutex argument is legal and has no effect.
Do not delete a mutex that has a current owner (in other words, is locked). If you try to delete a mutex that is locked, the cma_e_in_ use exception is raised.
The results of this routine are unpredictable if the handle specified in the mutex argument refers to a mutex object that does not currently exist (unless it is cma_c_null).
cma_e_existence cma_e_in_use cma_e_use_error