diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-06-08 03:53:50 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-06-08 03:53:50 +0200 |
commit | a587d00bace8e675b897abda12e8b2a0fc752b11 (patch) | |
tree | 1483198bb20cbc708086e3d32614366b081a51e6 /lib/workqueue.c | |
parent | Merge pull request #678 from chiragshah6/pim_dev (diff) | |
download | frr-a587d00bace8e675b897abda12e8b2a0fc752b11.tar.xz frr-a587d00bace8e675b897abda12e8b2a0fc752b11.zip |
*: remove THREAD_BACKGROUND
it's just an alias for a millisecond timer used in exactly nine places
and serves only to complicate
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/workqueue.c')
-rw-r--r-- | lib/workqueue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/workqueue.c b/lib/workqueue.c index f99258839..8a0650289 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); |