summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-07-07 10:16:49 +0800
committerMeco Man <[email protected]>2021-07-07 10:16:49 +0800
commit6e334416e3c855ef17a2a59eba816408ac296a75 (patch)
tree7efee554d3237192b357a9c32038a38546317d0c /src
parentedcdd126edf86b9990e15449ab69c8554da9e274 (diff)
[ipc][mutex] 补充注释
Diffstat (limited to 'src')
-rwxr-xr-xsrc/ipc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipc.c b/src/ipc.c
index 6a038cd2b6..6bc9c079b9 100755
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -564,7 +564,7 @@ rt_err_t rt_mutex_init(rt_mutex_t mutex, const char *name, rt_uint8_t flag)
mutex->original_priority = 0xFF;
mutex->hold = 0;
- /* set flag and it can only be RT_IPC_FLAG_PRIO */
+ /* flag can only be RT_IPC_FLAG_PRIO. RT_IPC_FLAG_FIFO cannot solve the unbounded priority inversion problem */
mutex->parent.parent.flag = RT_IPC_FLAG_PRIO;
return RT_EOK;
@@ -628,7 +628,7 @@ rt_mutex_t rt_mutex_create(const char *name, rt_uint8_t flag)
mutex->original_priority = 0xFF;
mutex->hold = 0;
- /* set flag and it can only be RT_IPC_FLAG_PRIO */
+ /* flag can only be RT_IPC_FLAG_PRIO. RT_IPC_FLAG_FIFO cannot solve the unbounded priority inversion problem */
mutex->parent.parent.flag = RT_IPC_FLAG_PRIO;
return mutex;