diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-02 06:44:34 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-02 06:45:39 +0200 |
commit | 4f25bdd2590f65586931ec71f798a91443e13674 (patch) | |
tree | b1594588c8286c2f5f9d1caae1616c7d144e6fc1 /src/fastd.h | |
parent | 96a291d11f884b18356ba8ef4b12b82d658d8d04 (diff) | |
download | fastd-4f25bdd2590f65586931ec71f798a91443e13674.tar fastd-4f25bdd2590f65586931ec71f798a91443e13674.zip |
Encapsulate semaphore handling
Diffstat (limited to 'src/fastd.h')
-rw-r--r-- | src/fastd.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |