summaryrefslogtreecommitdiff
path: root/examples/kernel/mutex_simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/kernel/mutex_simple.c')
-rw-r--r--examples/kernel/mutex_simple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/kernel/mutex_simple.c b/examples/kernel/mutex_simple.c
index 4f6c5d7d28..ee875cca7d 100644
--- a/examples/kernel/mutex_simple.c
+++ b/examples/kernel/mutex_simple.c
@@ -87,7 +87,7 @@ static void thread3_entry(void* parameter)
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);