...
is a pointer to a variable that is used to hold an error code:
OS_ERR_NONE
if the call is successful and the mutex has been deleted.
OS_ERR_DEL_ISR
if OS_CFG_CALLED_FROM_ISR_CHK_EN
set to 1
in os_cfg.h
: if attempting to delete a mutex from an ISR.
OS_ERR_OBJ_PTR_NULL
if OS_CFG_ARG_CHK_EN
is set to 1
in os_cfg.h
: if p_mutex
is a NULL
pointer.
OS_ERR_OBJ_TYPE
if OS_CFG_OBJ_TYPE_CHK_EN
is set to 1
in os_cfg.h
: if p_mutex
is not pointing to a mutex.
OS_ERR_OPT_INVALID
if the user does not specify one of the two options mentioned in the opt argument.
OS_ERR_TASK_WAITING
if one or more task are waiting on the mutex and OS_OPT_DEL_NO_PEND
is specified.
Returned Value
The number of tasks that were waiting for the mutex and 0 if an error occurred.
...