diff options
| author | guo <[email protected]> | 2021-07-23 13:35:04 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-23 13:35:04 +0800 |
| commit | ed5612d16f53665d9af34eddb78c4f60fa48d932 (patch) | |
| tree | 62868bea8dd7e0ebd0e1c9fa471fa12e2e80c44d /examples/kernel/timer_timeout.c | |
| parent | e6467321c7a2413287a1700672d051b593ae3e24 (diff) | |
| parent | 98c72007d2f15f4e4314f7c820d2d58e625c0d5d (diff) | |
Merge pull request #4875 from mysterywolf/fifo
[example] replace RT_IPC_FLAG_FIFO with RT_IPC_FLAG_PRIO
Diffstat (limited to 'examples/kernel/timer_timeout.c')
| -rw-r--r-- | examples/kernel/timer_timeout.c | 2 |
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", |
