Merge pull request #2946 from iglencao/glen_rt-thread

Create IPC.ipch
This commit is contained in:
Bernard Xiong 2019-08-13 14:57:43 +08:00 committed by GitHub
commit 3b252d5b97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -568,7 +568,7 @@ rt_err_t rt_mutex_detach(rt_mutex_t mutex)
/* wakeup all suspend threads */ /* wakeup all suspend 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;
@ -633,7 +633,7 @@ rt_err_t rt_mutex_delete(rt_mutex_t mutex)
/* wakeup all suspend threads */ /* wakeup all suspend threads */
rt_ipc_list_resume_all(&(mutex->parent.suspend_thread)); rt_ipc_list_resume_all(&(mutex->parent.suspend_thread));
/* delete semaphore object */ /* delete mutex object */
rt_object_delete(&(mutex->parent.parent)); rt_object_delete(&(mutex->parent.parent));
return RT_EOK; return RT_EOK;