summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_io.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-01-24 17:07:27 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-01-24 21:30:55 +0100
commita715eab3ce7b3aedcd8f809fc7f7f512f29cceb9 (patch)
tree71fb5d39a494de7d4ac5257c56df411bad7922da /bgpd/bgp_io.h
parentlib: streamline frr_pthreads, add default loop (diff)
downloadfrr-a715eab3ce7b3aedcd8f809fc7f7f512f29cceb9.tar.xz
frr-a715eab3ce7b3aedcd8f809fc7f7f512f29cceb9.zip
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 <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_io.h')
-rw-r--r--bgpd/bgp_io.h17
1 files changed, 0 insertions, 17 deletions
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
@@ -29,14 +29,6 @@
#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.
*
* @param arg - unused
@@ -44,15 +36,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.
*
* Uninitializes all resources and stops the thread.