diff options
author | Matt Traudt <sirmatt@ksu.edu> | 2017-07-10 16:10:29 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-09-15 11:40:59 -0400 |
commit | 2034e0d1d42c4f36a24c1eb88f95d057dacacf72 (patch) | |
tree | f78921b156db648d3666b765b0a38958abc90439 /src/ext | |
parent | b2c56eacdd61429f17b9e14db665592ac4453c50 (diff) | |
download | tor-2034e0d1d42c4f36a24c1eb88f95d057dacacf72.tar.gz tor-2034e0d1d42c4f36a24c1eb88f95d057dacacf72.zip |
sched: Groundwork before KIST implementation
- HT_FOREACH_FN defined in an additional place because nickm did that
in an old kist prototype
- Make channel_more_to_flush mockable for future sched tests
- Add empty scheduler_{vanilla,kist}.c files and put in include.am
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/ext')
-rw-r--r-- | src/ext/ht.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ext/ht.h b/src/ext/ht.h index caa420e9b5..99da773faf 100644 --- a/src/ext/ht.h +++ b/src/ext/ht.h @@ -150,6 +150,8 @@ #define HT_CLEAR(name, head) name##_HT_CLEAR(head) #define HT_INIT(name, head) name##_HT_INIT(head) #define HT_REP_IS_BAD_(name, head) name##_HT_REP_IS_BAD_(head) +#define HT_FOREACH_FN(name, head, fn, data) \ + name##_HT_FOREACH_FN((head), (fn), (data)) /* Helper: */ static inline unsigned ht_improve_hash(unsigned h) |