summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriglencao <[email protected]>2019-08-10 22:45:00 +0800
committeriglencao <[email protected]>2019-08-10 22:45:00 +0800
commit37de4d605414d1120bf9b4d262180e6f4ffea07c (patch)
tree9fdc6d5ed615b71816ed26251d4667ac88b6efc9 /src
parent882ba628bc0b43eb5ad1414180c3c4029d3f508b (diff)
Create IPC.ipch
这里注释应该由semaphore改为mutex
Diffstat (limited to 'src')
-rw-r--r--src/ipc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipc.c b/src/ipc.c
index 39cf217baa..c6a05e96a4 100644
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -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;