]> git.proxmox.com Git - mirror_frr.git/blobdiff - tests/lib/test_heavy_thread.c
*: remove THREAD_BACKGROUND
[mirror_frr.git] / tests / lib / test_heavy_thread.c
index 3b85619d3a3fddc48d887358c12e7eef05d6e4da..b39b3b7d4608b86eb1b4e927b13099f9e9e44415 100644 (file)
@@ -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;
 }