diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-12-11 16:39:12 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2023-03-24 13:32:17 +0100 |
commit | 70c35c11f2af5f169db446ef02ac0dda7b2822fc (patch) | |
tree | 225495229380773b17c58f088e230cebf43b1b29 /tests/lib | |
parent | *: Convert thread_timer_remain_XXX to event_timer_remain_XXX (diff) | |
download | frr-70c35c11f2af5f169db446ef02ac0dda7b2822fc.tar.xz frr-70c35c11f2af5f169db446ef02ac0dda7b2822fc.zip |
*: Convert thread_should_yield and thread_set_yield_time
Convert thread_should_yield and thread_set_yield_time
to event_should_yield and event_set_yield_time
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/test_heavy_thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/test_heavy_thread.c b/tests/lib/test_heavy_thread.c index 9084bf55e..fd8e910fd 100644 --- a/tests/lib/test_heavy_thread.c +++ b/tests/lib/test_heavy_thread.c @@ -67,7 +67,7 @@ static void clear_something(struct event *thread) while (ws->i < ITERS_MAX) { slow_func(ws->vty, ws->str, ws->i); ws->i++; - if (thread_should_yield(thread)) { + if (event_should_yield(thread)) { event_add_timer_msec(master, clear_something, ws, 0, NULL); return; |