mirror of
https://github.com/apache/nuttx.git
synced 2026-05-19 03:03:37 +08:00
082a3d3085
This lock is currently used in three places, mainly to protect tls->tl_mhead. Among them, pthread_mutex_add and pthread_mutex_remove involve writing to tls->tl_mhead, and there is certainly no conflict within the same thread. As for pthread_mutex_inconsistent, it involves reading. Currently, it can only be called when the TCB task corresponding to this tls exits, and the TCB corresponding to the tls can no longer continue to run. It seems that adding the lock serves no real purpose. Signed-off-by: hujun5 <hujun5@xiaomi.com>