summaryrefslogtreecommitdiff
path: root/examples/kernel/mbox_simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/kernel/mbox_simple.c')
-rw-r--r--examples/kernel/mbox_simple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/kernel/mbox_simple.c b/examples/kernel/mbox_simple.c
index 3f39bc0016..373c5f2817 100644
--- a/examples/kernel/mbox_simple.c
+++ b/examples/kernel/mbox_simple.c
@@ -80,7 +80,7 @@ int mbox_simple_init()
"mbt", /* 名称是mbt */
&mb_pool[0], /* 邮箱用到的内存池是mb_pool */
sizeof(mb_pool)/4, /* 大小是mb_pool大小除以4,因为一封邮件的大小是4字节 */
- RT_IPC_FLAG_FIFO); /* 采用FIFO方式进行线程等待 */
+ RT_IPC_FLAG_PRIO); /* 采用PRIO方式进行线程等待 */
/* 创建线程1 */
tid1 = rt_thread_create("t1",