summaryrefslogtreecommitdiff
path: root/examples/kernel/mutex_priority.c
diff options
context:
space:
mode:
authorchen zx <[email protected]>2021-08-06 17:05:50 +0800
committerGitHub <[email protected]>2021-08-06 17:05:50 +0800
commitb104bbc4f9d978209e898a6dfced53248e27e3d7 (patch)
treec6852a2c6500e7d7e2902d8a63eac4e1774ae50a /examples/kernel/mutex_priority.c
parenteb29bb5318b2d4b0a3ff48ed906b72c074bcc17d (diff)
parent054f6db3e651cb6e7340913e969f5656626b9e9a (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);