From a715eab3ce7b3aedcd8f809fc7f7f512f29cceb9 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Wed, 24 Jan 2018 11:07:27 -0500 Subject: bgpd: update pthreads to use lib changes Use the new threading facilities provided in lib/ to streamline the threads used in bgpd. In particular, all of the lifecycle code has been removed from the I/O thread and replaced with the default loop. Did not do the same to the keepalives thread as it is much smaller (doesn't need the event system). Also cleaned up some comments to match the style guide. Signed-off-by: Quentin Young --- bgpd/bgp_io.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'bgpd/bgp_io.h') diff --git a/bgpd/bgp_io.h b/bgpd/bgp_io.h index 7cfd1db71..14a12d370 100644 --- a/bgpd/bgp_io.h +++ b/bgpd/bgp_io.h @@ -28,14 +28,6 @@ #include "bgpd/bgpd.h" #include "frr_pthread.h" -/** - * Initializes data structures and flags for the write thread. - * - * This function must be called from the main thread before - * bgp_writes_start() is invoked. - */ -extern void bgp_io_init(void); - /** * Start function for write thread. * @@ -43,15 +35,6 @@ extern void bgp_io_init(void); */ extern void *bgp_io_start(void *arg); -/** - * Wait until the IO thread is ready to accept jobs. - * - * This function must be called immediately after the thread has been created - * for running. Use of other functions before calling this one will result in - * undefined behavior. - */ -extern void bgp_io_wait_running(void); - /** * Start function for write thread. * -- cgit v1.2.3