summaryrefslogtreecommitdiff
path: root/examples/kernel/mutex_priority.c
diff options
context:
space:
mode:
authorLim-LinYuanbo <[email protected]>2021-08-15 14:50:31 +0800
committerGitHub <[email protected]>2021-08-15 14:50:31 +0800
commit7c5f552103f82d37d694c6d2c1c60e35a4503f72 (patch)
treeeef14793c2f0f196ead869341afbe06ab9b7944e /examples/kernel/mutex_priority.c
parent0e28321c2cfe8273234135a78ce78ac0c4d1d505 (diff)
parentfea12e0903bf0d2e6efed7aa6838c28d1006e1f5 (diff)
Merge branch 'RT-Thread:master' into master
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);