nuttx/sched
Jiuzhu Dong dc1c7a644a wqueue: delete sem_wait to avoid race condition
when work_cancel was called, we need to check work.timer whether is active
by WDOG_ISACTIVE for work_queue with delay.

The wdog cb has not been executed when the flag:active is cleared
and if we check flag:active at this moment, WDOG_ISACTIVE will return false.
so the work_cancel will sem_wait until post a semaphore, but all free hpwork_thread
also wait this semphore and their priority are high than caller, this will be a race
condition causing thread/task of calling work_cancel block.

Change-Id: Id86289da60bf967d1062c1cdaaf6959b4f6dd054
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-07-19 20:20:47 +08:00
..
clock sched/clock: add nsec range check in clock_settime 2021-07-09 14:19:03 -03:00
environ Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
group group/child_status: Dynamically expand group child_status 2021-07-15 17:53:43 +08:00
init sched/init: initialize all idle thread's tl_task 2021-07-16 11:19:25 +08:00
irq sched: add CONFIG_SCHED_CRITMONITOR_XX for debugging system lantency 2021-07-02 08:25:02 -05:00
module Rename MODULE_TEXT to TEXT_HEAP as the latter is more generic. 2021-06-18 07:14:17 -05:00
mqueue mq_msgqalloc:del check MQ_MAX_MSGS 2021-07-15 20:32:03 +08:00
paging Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
pthread sched: Refine tls_info_s and task_info_s 2021-07-02 10:33:34 -05:00
sched sched: Dynamically extend the pid hash table 2021-07-11 19:42:30 -07:00
semaphore Merge commit '2e43815c92' into dev 2021-07-13 03:14:34 +08:00
signal sched: fix build break on spin_lock_irqsave() 2021-07-16 16:19:11 +08:00
task sched: Dynamically extend the pid hash table 2021-07-11 19:42:30 -07:00
timer Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
wdog sched: add CONFIG_SCHED_CRITMONITOR_XX for debugging system lantency 2021-07-02 08:25:02 -05:00
wqueue wqueue: delete sem_wait to avoid race condition 2021-07-19 20:20:47 +08:00
Kconfig arch/sim: Initialize the idle thread stack info correctly 2021-07-16 11:19:56 +08:00
Makefile make/archive: replace the dependency to preprequisite list 2021-05-07 21:34:45 +08:00