walnux/sched/pthread
Jukka Laitinen 06d00b4c88 Correct the pthread mutex priority inheritance default setting
After pthread mutexes changed to nxmutex, the priority inheritance
was set on by default; even if one tried to control it with
CONFIG_PTHREAD_MUTEX_DEFAULT_PRIO_INHERIT.

Also the CONFIG_PTHREAD_MUTEX_DEFAULT_PRIO_PROTECT is not effective.

Fix this by setting the default mutex priority adjustment flags according
to CONFIG_PTHREAD_MUTEX_DEFAULT_PRIO_INHERIT and CONFIG_PTHREAD_MUTEX_DEFAULT_PRIO_PROTECT.

Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>
2025-03-26 22:36:48 +08:00
..
CMakeLists.txt pthread: remove enter_critical_section in pthread_mutex 2025-01-12 22:30:35 +08:00
Make.defs pthread: remove enter_critical_section in pthread_mutex 2025-01-12 22:30:35 +08:00
pthread.h pthread_cond_wait: Use atomic_t to protect the waiter count 2025-01-20 23:55:26 +08:00
pthread_cancel.c pthread_cleanup: move clenup down to tls 2024-09-14 20:15:12 +08:00
pthread_completejoin.c group: use tg_mutex to replace tg_joinlock 2025-01-19 17:08:32 +08:00
pthread_condbroadcast.c pthread_cond_wait: Use atomic_t to protect the waiter count 2025-01-20 23:55:26 +08:00
pthread_condclockwait.c pthread_cond_wait: Use atomic_t to protect the waiter count 2025-01-20 23:55:26 +08:00
pthread_condsignal.c pthread_cond_wait: Use atomic_t to protect the waiter count 2025-01-20 23:55:26 +08:00
pthread_condwait.c pthread_cond_wait: Use atomic_t to protect the waiter count 2025-01-20 23:55:26 +08:00
pthread_create.c pthread: remove enter_critical_section in pthread_mutex 2025-01-12 22:30:35 +08:00
pthread_detach.c group: use tg_mutex to replace tg_joinlock 2025-01-19 17:08:32 +08:00
pthread_exit.c sched: replace sync pause with async pause for nxtask_terminate 2024-10-06 09:26:56 +08:00
pthread_findjoininfo.c group: use tg_mutex to replace tg_joinlock 2025-01-19 17:08:32 +08:00
pthread_getaffinity.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
pthread_getschedparam.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
pthread_join.c group: use tg_mutex to replace tg_joinlock 2025-01-19 17:08:32 +08:00
pthread_mutex.c pthread: remove enter_critical_section in pthread_mutex 2025-01-12 22:30:35 +08:00
pthread_mutexconsistent.c sched/pthread: There is no need to use sched_[un]lock 2024-10-12 13:28:23 +08:00
pthread_mutexdestroy.c sched/pthread: There is no need to use sched_[un]lock 2024-10-12 13:28:23 +08:00
pthread_mutexinit.c Correct the pthread mutex priority inheritance default setting 2025-03-26 22:36:48 +08:00
pthread_mutextimedlock.c pthread_mutx: remove unused critical_secton lock 2024-09-15 17:32:33 +08:00
pthread_mutextrylock.c sched/pthread: There is no need to use sched_[un]lock 2024-10-12 13:28:23 +08:00
pthread_mutexunlock.c pthread_mutx: remove unused critical_secton lock 2024-09-15 17:32:33 +08:00
pthread_release.c group: use tg_mutex to replace tg_joinlock 2025-01-19 17:08:32 +08:00
pthread_setaffinity.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
pthread_setschedparam.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
pthread_setschedprio.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
pthread_sigmask.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00