diff options
| author | Meco Man <[email protected]> | 2021-11-17 15:57:15 -0500 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-11-17 15:57:15 -0500 |
| commit | df9a23c534f57e6f5b06acfbe6db8b636894e0ad (patch) | |
| tree | a59dee4012835d6a8d1d1b4566b4a49a719798bd /components/drivers/src | |
| parent | fbca0c7f7d195eb8901902c4f94f4bab4395db61 (diff) | |
[mutex] use RT_IPC_FLAG_PRIO to replace RT_IPC_FLAG_FIFO
Diffstat (limited to 'components/drivers/src')
| -rw-r--r-- | components/drivers/src/pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/src/pipe.c b/components/drivers/src/pipe.c index af90f13c6f..bfb07fa950 100644 --- a/components/drivers/src/pipe.c +++ b/components/drivers/src/pipe.c @@ -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)); |
