diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-10-26 21:13:19 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-10-26 21:13:19 +0400 |
commit | 608432786ad77ce7ce071dd975d6c59d503d2302 (patch) | |
tree | d3991e93c04b0eef602afab272e7316490ba1d54 /src/dns.h | |
parent | 2e15cacc80101d91108be8aaa4ea722f31d22d6b (diff) | |
download | rspamd-608432786ad77ce7ce071dd975d6c59d503d2302.tar.gz rspamd-608432786ad77ce7ce071dd975d6c59d503d2302.zip |
* Use event_base thread safe API to allow parallelism based on threads
Diffstat (limited to 'src/dns.h')
-rw-r--r-- | src/dns.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -56,6 +56,7 @@ struct rspamd_dns_resolver { guint errors; /**< resolver errors */ struct timeval throttling_time; /**< throttling time */ struct event throttling_event; /**< throttling event */ + struct event_base *ev_base; /**< base for event ops */ }; struct dns_header; @@ -231,7 +232,7 @@ struct dns_query { /* * Init DNS resolver, params are obtained from a config file or system file /etc/resolv.conf */ -struct rspamd_dns_resolver *dns_resolver_init (struct config_file *cfg); +struct rspamd_dns_resolver *dns_resolver_init (struct event_base *ev_base, struct config_file *cfg); /* * Make a DNS request |