diff --git a/src/ipc.c b/src/ipc.c index ded99e4613b7c56580129eaa94e2c1ad4007c96c..40ca8b847866020b04008f1796e4439f942dae55 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -626,8 +626,8 @@ rt_err_t rt_mutex_take(rt_mutex_t mutex, rt_int32_t time) } else { - /* in initialization status, the value is 1. Therefore, if the - * value is great than 1, which indicates the mutex is avaible. + /* The value of mutex is 1 in initial status. Therefore, if the + * value is great than 0, it indicates the mutex is avaible. */ if (mutex->value > 0) {