From c9563da832488c98e712e4c395bf0cb6dc4a81e7 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 12 Oct 2014 17:19:51 -0600 Subject: [PATCH] Missing workqueue logic --- sched/wqueue/kwork_process.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sched/wqueue/kwork_process.c b/sched/wqueue/kwork_process.c index ef044a08e8..87ed7900d3 100644 --- a/sched/wqueue/kwork_process.c +++ b/sched/wqueue/kwork_process.c @@ -239,7 +239,10 @@ void work_process(FAR struct kwork_wqueue_s *wqueue, uint32_t period, int wndx) sigemptyset(&set); sigaddset(&set, SIGWORK); + + wqueue->worker[wndx].busy = false; DEBUGVERIFY(sigwaitinfo(&set, NULL)); + wqueue->worker[wndx].busy = true; } else #endif