...
Files
os.h/os_mutex.c
Prototype
Code Block |
---|
OS_OBJ_QTY OSMutexDel (OS_MUTEX *p_mutex,
OS_OPT opt,
OS_ERR *p_err) |
Arguments
p_mutex
is a pointer to the mutex to delete.
...
- Use this call with care as other tasks may expect the presence of the mutex.
Example Usage
Code Block | ||
---|---|---|
| ||
OS_MUTEX DispMutex;
void Task (void *p_arg)
{
OS_ERR err;
OS_OBJ_QTY qty;
(void)&p_arg;
while (DEF_ON) {
:
:
qty = OSMutexDel(&DispMutex,
OS_OPT_DEL_ALWAYS,
&err);
/* Check "err" */
:
:
}
} |