commit
3b252d5b97
|
@ -568,7 +568,7 @@ rt_err_t rt_mutex_detach(rt_mutex_t mutex)
|
|||
/* wakeup all suspend threads */
|
||||
rt_ipc_list_resume_all(&(mutex->parent.suspend_thread));
|
||||
|
||||
/* detach semaphore object */
|
||||
/* detach mutex object */
|
||||
rt_object_detach(&(mutex->parent.parent));
|
||||
|
||||
return RT_EOK;
|
||||
|
@ -633,7 +633,7 @@ rt_err_t rt_mutex_delete(rt_mutex_t mutex)
|
|||
/* wakeup all suspend threads */
|
||||
rt_ipc_list_resume_all(&(mutex->parent.suspend_thread));
|
||||
|
||||
/* delete semaphore object */
|
||||
/* delete mutex object */
|
||||
rt_object_delete(&(mutex->parent.parent));
|
||||
|
||||
return RT_EOK;
|
||||
|
|
Loading…
Reference in New Issue