[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

View File

@@ -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;