summaryrefslogtreecommitdiff
path: root/tests/lib/test_heavy_thread.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-06-13 09:18:14 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-06-13 09:18:14 +0200
commit97bd5c48de49f1a25c6fb979f0ca151412fbd61b (patch)
tree924b30812e7ae8d9d2f7c897b4ebbbf19802eff8 /tests/lib/test_heavy_thread.c
parentcea34723daeb767a5b92fa5800ebed81e3f690b6 (diff)
parentad2e2470f63e3fac228b6cc532dfe36a0794a846 (diff)
Merge remote-tracking branch 'frr/master' into pull-624
Diffstat (limited to 'tests/lib/test_heavy_thread.c')
-rw-r--r--tests/lib/test_heavy_thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/test_heavy_thread.c b/tests/lib/test_heavy_thread.c
index 3b85619d3a..b39b3b7d46 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;
}