incubator-nuttx/sched
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
..
addrenv cmake:complete missing changes during cmake reforming for sched 2023-09-08 21:20:16 +03:00
clock sched/group: change type of task group member to single queue 2024-03-07 12:39:29 +08:00
environ sched/environ: check envcp validity before hold sched_lock() 2024-03-05 22:24:14 +08:00
group sched/pthread/join: refactor pthread join to support join task 2024-03-13 18:06:56 +09:00
init sched/pthread/join: refactor pthread join to support join task 2024-03-13 18:06:56 +09:00
instrument sched/procfs:use instrument to statistics run time max stack 2023-12-11 02:06:51 -08:00
irq SMP: fix crash when switch to new task which is still running 2024-03-01 21:05:00 +09:00
misc assert: fix flags type, should be irqstate_t 2024-01-04 22:16:54 -08:00
module fs: procfs add poll support 2023-12-26 19:23:13 -08:00
mqueue mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
paging paging: Rename existing CONFIG_PAGING to CONFIG_LEGACY_PAGING 2024-03-05 09:45:49 +08:00
pthread sched/pthread/join: refactor pthread join to support join task 2024-03-13 18:06:56 +09:00
sched sched/pthread/join: refactor pthread join to support join task 2024-03-13 18:06:56 +09:00
semaphore shced:sem: replace mutex with spinlock 2024-03-19 18:06:12 +08:00
signal sched/signal: move unblock signal info to stack 2024-03-15 01:10:55 +08:00
task sched/pthread/join: refactor pthread join to support join task 2024-03-13 18:06:56 +09:00
timer Replace enter_critical_section with spin_irqsave 2023-10-21 11:00:07 +08:00
tls stdio/file: unify group file list to common single queue 2024-03-18 19:32:49 +08:00
wdog clock: replace all up_perf_xx with perf_xx 2023-10-02 16:11:43 +02:00
wqueue clock: replace all up_perf_xx with perf_xx 2023-10-02 16:11:43 +02:00
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
Kconfig sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
Makefile sched/procfs:use instrument to statistics run time max stack 2023-12-11 02:06:51 -08:00