diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-01-24 17:07:27 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-01-24 21:30:55 +0100 |
commit | a715eab3ce7b3aedcd8f809fc7f7f512f29cceb9 (patch) | |
tree | 71fb5d39a494de7d4ac5257c56df411bad7922da /bgpd/bgp_keepalives.h | |
parent | lib: streamline frr_pthreads, add default loop (diff) | |
download | frr-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_keepalives.h')
-rw-r--r-- | bgpd/bgp_keepalives.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_keepalives.h b/bgpd/bgp_keepalives.h index 1fbd035b9..d1cb7d246 100644 --- a/bgpd/bgp_keepalives.h +++ b/bgpd/bgp_keepalives.h @@ -88,6 +88,6 @@ extern void bgp_keepalives_wake(void); /** * Stops the thread and blocks until it terminates. */ -int bgp_keepalives_stop(void **result, struct frr_pthread *fpt); +int bgp_keepalives_stop(struct frr_pthread *fpt, void **result); #endif /* _FRR_BGP_KEEPALIVES_H */ |