mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 18:37:46 +08:00
e277ac7a7f
Summary: - During reviewing sched_lock() in nxtask_assign_pid(), I noticed that g_pidhash is not protected by a critical section - Because g_pidhash is accessed in an interrupt context, it should be protected by a critical section. - Actually, nxsched_foreach(), nxsched_get_tcb() and so on use a critical section. Impact: - No impact Testing: - Tested with spresense:wifi (non-SMP) and spresense:wifi_smp Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>