summaryrefslogtreecommitdiff
path: root/lib/thread.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2017-05-02 00:37:45 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2017-11-30 16:17:59 -0500
commit424ab01d0f69a71b865e5f2d817baea7ce263e44 (patch)
tree82f06cf1dae116f6db05cd5409475a6f8b6dcf1e /lib/thread.c
parent56257a44e408b7491090b47e24b22beeb1cfd35e (diff)
bgpd: implement buffered reads
* Move and modify all network input related code to bgp_io.c * Add a real input buffer to `struct peer` * Move connection initialization to its own thread.c task instead of piggybacking off of bgp_read() * Tons of little fixups Primary changes are in bgp_packet.[ch], bgp_io.[ch], bgp_fsm.[ch]. Changes made elsewhere are almost exclusively refactoring peer->ibuf to peer->curr since peer->ibuf is now the true FIFO packet input buffer while peer->curr represents the packet currently being processed by the main pthread. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/thread.c')
-rw-r--r--lib/thread.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/thread.c b/lib/thread.c
index a805ae3454..cb5d1d47ae 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -36,7 +36,6 @@
DEFINE_MTYPE_STATIC(LIB, THREAD, "Thread")
DEFINE_MTYPE_STATIC(LIB, THREAD_MASTER, "Thread master")
DEFINE_MTYPE_STATIC(LIB, THREAD_STATS, "Thread stats")
-DEFINE_MTYPE(LIB, PTHREAD, "POSIX Thread")
#if defined(__APPLE__)
#include <mach/mach.h>