summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-06-14 03:30:17 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-06-14 03:30:17 +0200
commit781538295ff7c056ffb5c19c283cfbacd91b243d (patch)
treeb5fc6f3be42c3839163638e513d315a64ffce550 /src/fastd.h
parent7915533147ddaaf5480e52b7d817e11b36348e4a (diff)
downloadfastd-781538295ff7c056ffb5c19c283cfbacd91b243d.tar
fastd-781538295ff7c056ffb5c19c283cfbacd91b243d.zip
Limit the number of concurrent on-verify runs
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h4
1 files changed, 4 insertions, 0 deletions
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 <fcntl.h>
#include <pthread.h>
#include <poll.h>
+#include <semaphore.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
@@ -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 */