walnux/libs/libc/wqueue
ouyangxiangzhen fb592064cb sched: Improved the wdog and wq list insertion.
For the watchdog list and the workqueue list, we wonder whether the list head has changed after the insertion. In the original implementation, we have to access the list->next field and compare the result to the currently inserted node. In this commit, we mark the list head before the insertion and comparing the current traversed node with the list head we marked, which can avoid accessing the list->next and is more cache-friendly.

Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2025-05-07 02:02:10 +08:00
..
CMakeLists.txt cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
Kconfig
Make.defs libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
work_cancel.c sched/wqueue: Change dq to list. 2025-05-07 02:02:10 +08:00
work_queue.c sched: Improved the wdog and wq list insertion. 2025-05-07 02:02:10 +08:00
work_usrthread.c sched/wqueue: Refactor delayed and periodical workqueue. 2025-05-07 02:02:10 +08:00
wqueue.h sched/wqueue: Change dq to list. 2025-05-07 02:02:10 +08:00