del_mtx
ER del_mtx (ID mtxid);When either of task locks the target mutex, the lock by the task is cancelled. As a result, the current task priority of the task is returned to the base priority when there is no mutex being locked by the task. The task is not notified that the mutex has been deleted. If an attempt is later made to unlock the mutex by using unl_mtx, an error E_NOEXS is returned.
When there are waiting tasks for the target mutex by using loc_mtx or tloc_mtx, this service call cancels the WAITING state of the tasks and returns E_DLT as a return value of the loc_mtx or tloc_mtx.