mirror of
https://github.com/apache/nuttx.git
synced 2026-06-22 15:32:49 +08:00
f442c6b05e
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>