mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
[example] replace RT_IPC_FLAG_FIFO with RT_IPC_FLAG_PRIO
This commit is contained in:
1 parent
6c5546cc9c
commit
98c72007d2
13 files changed
+15
-15
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user