Add support for delays of different durations in work queue processing

This commit is contained in:
Gregory Nutt
2014-10-10 13:21:37 -06:00
parent 75e7a4dbfc
commit 16a3e83258
10 changed files with 103 additions and 67 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ int work_qqueue(FAR struct wqueue_s *wqueue, FAR struct work_s *work,
work->qtime = clock_systimer(); /* Time work queued */
dq_addlast((FAR dq_entry_t *)work, &wqueue->q);
kill(wqueue->pid, SIGWORK); /* Wake up the worker thread */
kill(wqueue->pid[0], SIGWORK); /* Wake up the worker thread */
irqrestore(flags);
return OK;