From 781538295ff7c056ffb5c19c283cfbacd91b243d Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 14 Jun 2014 03:30:17 +0200 Subject: Limit the number of concurrent on-verify runs --- src/fastd.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/fastd.h') diff --git a/src/fastd.h b/src/fastd.h index 19660db..539dd54 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -43,6 +43,7 @@ #include #include #include +#include #include #include #include @@ -242,6 +243,9 @@ struct fastd_context { uint64_t next_peer_id; /**< An monotonously increasing ID peers are identified with in some components */ VECTOR(fastd_peer_t*) peers; /**< The currectly active peers */ +#ifdef WITH_VERIFY + sem_t verify_limit; /**< Keeps track of the number of verifier threads */ +#endif #ifdef USE_EPOLL int epoll_fd; /**< The file descriptor for the epoll facility */ -- cgit v1.2.3