diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-29 11:53:34 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-29 11:53:34 +0200 |
commit | 620f1cd45f44eb2dc2d9dd16bdf6ba4512a1bd69 (patch) | |
tree | b499f013579302ee0c57538a8879d56c86dd756c /src/fastd.h | |
parent | dcaf41a18e1bd9014d1cf3ca7a7129a1be76e811 (diff) | |
download | fastd-620f1cd45f44eb2dc2d9dd16bdf6ba4512a1bd69.tar fastd-620f1cd45f44eb2dc2d9dd16bdf6ba4512a1bd69.zip |
Replace old task queue
The handshakes are now schedules in a doubly-linked list that is maintained as a
part of the peer structure.
Diffstat (limited to 'src/fastd.h')
-rw-r--r-- | src/fastd.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 <errno.h> #include <stdarg.h> @@ -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; |