summaryrefslogtreecommitdiff
path: root/examples/kernel/mutex_priority.c
diff options
context:
space:
mode:
authorMeco Jianting Man <[email protected]>2021-07-30 10:43:19 -0500
committerGitHub <[email protected]>2021-07-30 10:43:19 -0500
commit2589d245325d95f0291e27886f93644d1f762f53 (patch)
tree432e10f647be74abf9d6d58e131b0496bfae3fa3 /examples/kernel/mutex_priority.c
parent19c5088bb8b6cfdc9e3cecc63b6f9c116a799c49 (diff)
parent56d3abe30148a07dd41d78e8aa190f9baa164266 (diff)
Merge branch 'master' into tz
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);