diff options
| author | Meco Man <[email protected]> | 2021-07-18 12:52:04 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-07-18 12:52:04 +0800 |
| commit | 98c72007d2f15f4e4314f7c820d2d58e625c0d5d (patch) | |
| tree | 37479e022047992ce3732e0e3d7670461222e8fc /examples/kernel/mbox_simple.c | |
| parent | 6c5546cc9c2103439dbe2e641f9f862868d2c9ab (diff) | |
[example] replace RT_IPC_FLAG_FIFO with RT_IPC_FLAG_PRIO
Diffstat (limited to 'examples/kernel/mbox_simple.c')
| -rw-r--r-- | examples/kernel/mbox_simple.c | 2 |
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", |
