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 /tests | |
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 'tests')
-rw-r--r-- | tests/lib/test_heavy_thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/test_heavy_thread.c b/tests/lib/test_heavy_thread.c index 3b85619d3..b39b3b7d4 100644 --- a/tests/lib/test_heavy_thread.c +++ b/tests/lib/test_heavy_thread.c @@ -90,7 +90,7 @@ clear_something (struct thread *thread) ws->i++; if (thread_should_yield(thread)) { - thread_add_background(master, clear_something, ws, 0, NULL); + thread_add_timer_msec (master, clear_something, ws, 0, NULL); return 0; } } @@ -134,7 +134,7 @@ DEFUN (clear_foo, ws->vty = vty; ws->i = ITERS_FIRST; - thread_add_background(master, clear_something, ws, 0, NULL); + thread_add_timer_msec (master, clear_something, ws, 0, NULL); return CMD_SUCCESS; } |