[mutex] use RT_IPC_FLAG_PRIO to replace RT_IPC_FLAG_FIFO

This commit is contained in:
Meco Man
2021-11-17 15:57:15 -05:00
parent fbca0c7f7d
commit df9a23c534
48 changed files with 55 additions and 55 deletions
+1 -1
View File
@@ -451,7 +451,7 @@ rt_pipe_t *rt_pipe_create(const char *name, int bufsz)
rt_memset(pipe, 0, sizeof(rt_pipe_t));
pipe->is_named = RT_TRUE; /* initialize as a named pipe */
rt_mutex_init(&(pipe->lock), name, RT_IPC_FLAG_FIFO);
rt_mutex_init(&(pipe->lock), name, RT_IPC_FLAG_PRIO);
rt_wqueue_init(&(pipe->reader_queue));
rt_wqueue_init(&(pipe->writer_queue));