From 4f25bdd2590f65586931ec71f798a91443e13674 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 2 Aug 2014 06:44:34 +0200 Subject: Encapsulate semaphore handling --- src/fastd.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/fastd.h') diff --git a/src/fastd.h b/src/fastd.h index c52a690..7050f05 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -36,6 +36,7 @@ #include "dlist.h" #include "buffer.h" #include "log.h" +#include "sem.h" #include "shell.h" #include "vector.h" @@ -244,7 +245,7 @@ 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 */ + fastd_sem_t verify_limit; /**< Keeps track of the number of verifier threads */ #endif #ifdef USE_EPOLL -- cgit v1.2.3