summaryrefslogtreecommitdiff
path: root/components/libc
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-11-17 15:57:15 -0500
committerMeco Man <[email protected]>2021-11-17 15:57:15 -0500
commitdf9a23c534f57e6f5b06acfbe6db8b636894e0ad (patch)
treea59dee4012835d6a8d1d1b4566b4a49a719798bd /components/libc
parentfbca0c7f7d195eb8901902c4f94f4bab4395db61 (diff)
[mutex] use RT_IPC_FLAG_PRIO to replace RT_IPC_FLAG_FIFO
Diffstat (limited to 'components/libc')
-rw-r--r--components/libc/posix/pthreads/pthread_mutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/posix/pthreads/pthread_mutex.c b/components/libc/posix/pthreads/pthread_mutex.c
index a681380b11..7bc5ff95c7 100644
--- a/components/libc/posix/pthreads/pthread_mutex.c
+++ b/components/libc/posix/pthreads/pthread_mutex.c
@@ -121,7 +121,7 @@ int pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *attr)
mutex->attr = *attr;
/* init mutex lock */
- result = rt_mutex_init(&(mutex->lock), name, RT_IPC_FLAG_FIFO);
+ result = rt_mutex_init(&(mutex->lock), name, RT_IPC_FLAG_PRIO);
if (result != RT_EOK)
return EINVAL;