nuttx/libs/libc/pthread
Jukka Laitinen f442c6b05e libs/libc/pthread/pthread_mutex: Fix robust mutex initialization
This fixes an issue where ostest robust mutex test gets stuck.

In CONFIG_PTHREAD_MUTEX_ROBUST mode, every NORMAL mutex is robust by
definition, so the robust flag must be set to allow the mutex to be tracked
in the holder's mutex list.

Otherwise, pthread_mutex_add() will not record the mutex and
pthread_mutex_inconsistent() will not be able to mark it as inconsistent or
wake waiters when the holder thread terminates.

Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>
2026-06-12 08:04:09 +08:00
..
CMakeLists.txt libs/pthread: disable pthread_kill when no signals 2026-02-26 20:03:05 +08:00
Kconfig boardcrtl: change BOARDCTL_TESTSET to BOARDIOC_SPINLOCK 2024-09-06 16:10:09 +08:00
Make.defs libs/pthread: disable pthread_kill when no signals 2026-02-26 20:03:05 +08:00
pthread.h pthread: move pthread_cond to userspace 2026-01-26 16:26:39 +08:00
pthread_atfork.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_attr_destroy.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_attr_getaffinity.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_attr_getdetachstate.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_attr_getguardsize.c pthread: add pthread_attr_{get|set}guardsize support 2025-08-22 20:50:13 +08:00
pthread_attr_getinheritsched.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_attr_getschedparam.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_attr_getschedpolicy.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_attr_getscope.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_attr_getstack.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_attr_getstackaddr.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_attr_getstacksize.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_attr_init.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_attr_setaffinity.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_attr_setdetachstate.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_attr_setguardsize.c pthread: add pthread_attr_{get|set}guardsize support 2025-08-22 20:50:13 +08:00
pthread_attr_setinheritsched.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_attr_setschedparam.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_attr_setschedpolicy.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_attr_setscope.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_attr_setstack.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_attr_setstackaddr.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_attr_setstacksize.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_barrierattr_destroy.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_barrierattr_getpshared.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_barrierattr_init.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_barrierattr_setpshared.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_barrierdestroy.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_barrierinit.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_barrierwait.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_cleanup.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_concurrency.c pthread: add pthread_{get|set}concurrency support 2025-08-22 20:50:13 +08:00
pthread_condattr_destroy.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_condattr_getclock.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_condattr_getpshared.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_condattr_init.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_condattr_setclock.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_condattr_setpshared.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_condbroadcast.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_condclockwait.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_conddestroy.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_condinit.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_condsignal.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_condtimedwait.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_condwait.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_create.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_equal.c pthead: change the pthread_equal implementation from macro to function 2026-01-16 01:37:38 +08:00
pthread_exit.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_get_stackaddr_np.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_get_stacksize_np.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_getcpuclockid.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_getname_np.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_getspecific.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_gettid_np.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_keycreate.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_keydelete.c libc/pthread/pthread_keydelete.c: reset key value 2025-10-01 12:00:43 +08:00
pthread_kill.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_mutex.c pthread: make PTHREAD_MUTEX_DEFAULT_UNSAFE default true 2026-01-26 20:56:12 +08:00
pthread_mutex_consistent.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_mutex_destroy.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_mutex_getprioceiling.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_mutex_inconsistent.c pthread: remove tl_lock 2026-01-26 20:56:12 +08:00
pthread_mutex_init.c libs/libc/pthread/pthread_mutex: Fix robust mutex initialization 2026-06-12 08:04:09 +08:00
pthread_mutex_lock.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_mutex_setprioceiling.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_mutex_timedlock.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_mutex_trylock.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_mutex_unlock.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_mutexattr_destroy.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_mutexattr_getprioceiling.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_mutexattr_getprotocol.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_mutexattr_getpshared.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_mutexattr_getrobust.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_mutexattr_gettype.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_mutexattr_init.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_mutexattr_setprioceiling.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_mutexattr_setprotocol.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_mutexattr_setpshared.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_mutexattr_setrobust.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_mutexattr_settype.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_once.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_rwlock.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_rwlock_rdlock.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_rwlock_wrlock.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_rwlockattr_destroy.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_rwlockattr_getpshared.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_rwlockattr_init.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_rwlockattr_setpshared.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_self.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_setcancelstate.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
pthread_setcanceltype.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
pthread_setname_np.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_setspecific.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
pthread_spinlock.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
pthread_testcancel.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
pthread_yield.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00