mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-03-03 05:26:28 +08:00
[ipc][mutex] 补充注释
This commit is contained in:
parent
edcdd126ed
commit
6e334416e3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user