summaryrefslogtreecommitdiff
path: root/examples/kernel/timer_timeout.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/timer_timeout.c
parent0e28321c2cfe8273234135a78ce78ac0c4d1d505 (diff)
parentfea12e0903bf0d2e6efed7aa6838c28d1006e1f5 (diff)
Merge branch 'RT-Thread:master' into master
Diffstat (limited to 'examples/kernel/timer_timeout.c')
-rw-r--r--examples/kernel/timer_timeout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/kernel/timer_timeout.c b/examples/kernel/timer_timeout.c
index 40bbbf2831..f72b45be3c 100644
--- a/examples/kernel/timer_timeout.c
+++ b/examples/kernel/timer_timeout.c
@@ -73,7 +73,7 @@ int timer_timeout_init()
&msg_pool[0], /* 内存池指向msg_pool */
128 - sizeof(void*), /* 每个消息的大小是 128 - void* */
sizeof(msg_pool), /* 内存池的大小是msg_pool的大小 */
- RT_IPC_FLAG_FIFO); /* 如果有多个线程等待,按照先来先得到的方法分配消息 */
+ RT_IPC_FLAG_PRIO); /* 如果有多个线程等待,按照优先级由高到低的方法分配消息 */
/* 创建线程 */
tid = rt_thread_create("t",