[example] replace RT_IPC_FLAG_FIFO with RT_IPC_FLAG_PRIO

This commit is contained in:
Meco Man
2021-07-18 12:52:04 +08:00
parent 6c5546cc9c
commit 98c72007d2
13 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ static void thread_entry(void* parameter)
int semaphore_dynamic_init()
{
/* 创建一个信号量,初始值是0 */
sem = rt_sem_create("sem", 0, RT_IPC_FLAG_FIFO);
sem = rt_sem_create("sem", 0, RT_IPC_FLAG_PRIO);
if (sem == RT_NULL)
{
tc_stat(TC_STAT_END | TC_STAT_FAILED);