summaryrefslogtreecommitdiff
path: root/src/ipc.c
diff options
context:
space:
mode:
authorjihongbin <[email protected]>2021-12-16 18:43:45 +0800
committerjihongbin <[email protected]>2021-12-16 18:43:45 +0800
commiteda0df469e867f343a9906bf089078c63fae8944 (patch)
tree578653479b19b7e1039b0fc6d1e174ae2982d303 /src/ipc.c
parent7733999c0cf19567fc97f48ac96e4be9b1bf5a69 (diff)
[update] Correct some code comments
Diffstat (limited to 'src/ipc.c')
-rwxr-xr-xsrc/ipc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ipc.c b/src/ipc.c
index da2996a30e..2853590501 100755
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -874,10 +874,10 @@ RTM_EXPORT(rt_mutex_delete);
* @brief This function will take a mutex, if the mutex is unavailable, the thread shall wait for
* the mutex up to a specified time.
*
- * @note When this function is called, the count value of the sem->value will decrease 1 until it is equal to 0.
- * When the sem->value is 0, it means that the mutex is unavailable. At this time, it will suspend the
+ * @note When this function is called, the count value of the mutex->value will decrease 1 until it is equal to 0.
+ * When the mutex->value is 0, it means that the mutex is unavailable. At this time, it will suspend the
* thread preparing to take the mutex.
- * On the contrary, the rt_sem_release() function will increase the count value of sem->value by 1 each time.
+ * On the contrary, the rt_mutex_release() function will increase the count value of mutex->value by 1 each time.
*
* @see rt_mutex_trytake()
*