Merge pull request #4821 from Eureka1024/master

[kernel] Fix comment error for rt_mutex_detach().
This commit is contained in:
guo 2021-06-24 09:19:41 +08:00 committed by GitHub
commit 30b9f7e1c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -588,7 +588,7 @@ rt_err_t rt_mutex_detach(rt_mutex_t mutex)
/* wakeup all suspended threads */ /* wakeup all suspended threads */
rt_ipc_list_resume_all(&(mutex->parent.suspend_thread)); rt_ipc_list_resume_all(&(mutex->parent.suspend_thread));
/* detach semaphore object */ /* detach mutex object */
rt_object_detach(&(mutex->parent.parent)); rt_object_detach(&(mutex->parent.parent));
return RT_EOK; return RT_EOK;