nuttx/sched/semaphore
TaiJu Wu 23d65cb97f shced:sem: replace mutex with spinlock
The overhead of spinlok is less than mutext (mutex need to call
enter_critical section.)
After this patch, `down_write_trylock` and `down_read_trylock` can be
use in interrupt context.

The instruction is protected with mutex only one instruction so using
spinlock is better.

Signed-off-by: TaiJu Wu <tjwu1217@gmail.com>
2024-03-19 18:06:12 +08:00
..
CMakeLists.txt
Make.defs
sem_clockwait.c
sem_destroy.c
sem_holder.c
sem_initialize.c
sem_post.c
sem_recover.c
sem_reset.c
sem_rw.c
sem_setprotocol.c
sem_tickwait.c
sem_timedwait.c
sem_timeout.c
sem_trywait.c
sem_wait.c
sem_waitirq.c
semaphore.h
spinlock.c