From 620f1cd45f44eb2dc2d9dd16bdf6ba4512a1bd69 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 29 Aug 2013 11:53:34 +0200 Subject: Replace old task queue The handshakes are now schedules in a doubly-linked list that is maintained as a part of the peer structure. --- src/fastd.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/fastd.h') diff --git a/src/fastd.h b/src/fastd.h index 133e2e0..848a5d3 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -29,7 +29,7 @@ #include "compat.h" #include "types.h" -#include "queue.h" +#include "dlist.h" #include #include @@ -277,7 +277,8 @@ struct fastd_context { fastd_peer_group_t *peer_group; fastd_peer_t *peers; fastd_peer_t *peers_temp; - fastd_queue_t task_queue; + + fastd_dlist_head_t handshake_queue; struct timespec next_keepalives; int resolverfd; -- cgit v1.2.3