mirror of
https://github.com/apache/nuttx.git
synced 2026-08-15 17:33:18 +00:00
spinlock.c: Implement read write spinlock. Readers can take lock simultaneously but only one writer can take lock. irq_spinlock.c: Align g_irq_spin_count. If the lock is NULL, the caller will get global lock (e.g. g_irq_spin) and spin_lock_irqsave() support nest on the same CPU. If the CPU can write lock, it can call write_lock_irqsave() again (e.g. support nest). Signed-off-by: TaiJu Wu <tjwu1217@gmail.com> Co-authored-by: David Sidrane <David.Sidrane@Nscdg.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| irq.h | ||
| irq_attach.c | ||
| irq_chain.c | ||
| irq_csection.c | ||
| irq_dispatch.c | ||
| irq_foreach.c | ||
| irq_initialize.c | ||
| irq_procfs.c | ||
| irq_spinlock.c | ||
| irq_unexpectedisr.c | ||
| Make.defs | ||