summaryrefslogtreecommitdiff
path: root/examples/kernel/mutex_priority.c
diff options
context:
space:
mode:
authorguo <[email protected]>2021-07-23 13:35:04 +0800
committerGitHub <[email protected]>2021-07-23 13:35:04 +0800
commited5612d16f53665d9af34eddb78c4f60fa48d932 (patch)
tree62868bea8dd7e0ebd0e1c9fa471fa12e2e80c44d /examples/kernel/mutex_priority.c
parente6467321c7a2413287a1700672d051b593ae3e24 (diff)
parent98c72007d2f15f4e4314f7c820d2d58e625c0d5d (diff)
Merge pull request #4875 from mysterywolf/fifo
[example] replace RT_IPC_FLAG_FIFO with RT_IPC_FLAG_PRIO
Diffstat (limited to 'examples/kernel/mutex_priority.c')
-rwxr-xr-xexamples/kernel/mutex_priority.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/kernel/mutex_priority.c b/examples/kernel/mutex_priority.c
index c1db934157..a7702eed6f 100755
--- a/examples/kernel/mutex_priority.c
+++ b/examples/kernel/mutex_priority.c
@@ -281,7 +281,7 @@ static void thread29_entry(void* parameter)
static int mutex_simple_init()
{
/* 创建互斥锁 */
- mutex = rt_mutex_create("mutex", RT_IPC_FLAG_FIFO);
+ mutex = rt_mutex_create("mutex", RT_IPC_FLAG_PRIO);
if (mutex == RT_NULL)
{
tc_stat(TC_STAT_END | TC_STAT_FAILED);