summaryrefslogtreecommitdiff
path: root/lib/workqueue.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2017-06-09 13:54:43 -0400
committerGitHub <noreply@github.com>2017-06-09 13:54:43 -0400
commit991da9b1498d3489fae80d85aaa1f3196f8c731d (patch)
treeb8ff3bce0147e90ef27cbf7c11b1723a25c4ae95 /lib/workqueue.c
parentce7fce36bdf3a2a32ca17602b51eb05f8d9ece82 (diff)
parenta587d00bace8e675b897abda12e8b2a0fc752b11 (diff)
Merge pull request #694 from qlyoung/event-loop
*: remove THREAD_BACKGROUND
Diffstat (limited to 'lib/workqueue.c')
-rw-r--r--lib/workqueue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/workqueue.c b/lib/workqueue.c
index f992588399..8a06502894 100644
--- a/lib/workqueue.c
+++ b/lib/workqueue.c
@@ -126,8 +126,8 @@ work_queue_schedule (struct work_queue *wq, unsigned int delay)
&& (listcount (wq->items) > 0) )
{
wq->thread = NULL;
- thread_add_background(wq->master, work_queue_run, wq, delay,
- &wq->thread);
+ thread_add_timer_msec (wq->master, work_queue_run, wq, delay,
+ &wq->thread);
/* set thread yield time, if needed */
if (wq->thread && wq->spec.yield != THREAD_YIELD_TIME_SLOT)
thread_set_yield_time (wq->thread, wq->spec.yield);