mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 18:58:27 +08:00
wqueue: handle work_cancel() called in irq mode or idle thread
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
@@ -96,7 +96,7 @@ static int work_qcancel(FAR struct kwork_wqueue_s *wqueue, int nthread,
|
||||
work->worker = NULL;
|
||||
ret = OK;
|
||||
}
|
||||
else if (nthread > 0)
|
||||
else if (!up_interrupt_context() && !sched_idletask() && nthread > 0)
|
||||
{
|
||||
int wndx;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user