aboutsummaryrefslogtreecommitdiffstats
path: root/src/smtp.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-10-26 21:13:19 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-10-26 21:13:19 +0400
commit608432786ad77ce7ce071dd975d6c59d503d2302 (patch)
treed3991e93c04b0eef602afab272e7316490ba1d54 /src/smtp.h
parent2e15cacc80101d91108be8aaa4ea722f31d22d6b (diff)
downloadrspamd-608432786ad77ce7ce071dd975d6c59d503d2302.tar.gz
rspamd-608432786ad77ce7ce071dd975d6c59d503d2302.zip
* Use event_base thread safe API to allow parallelism based on threads
Diffstat (limited to 'src/smtp.h')
-rw-r--r--src/smtp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/smtp.h b/src/smtp.h
index a5a9533bc..00d8c3abf 100644
--- a/src/smtp.h
+++ b/src/smtp.h
@@ -51,6 +51,7 @@ struct smtp_worker_ctx {
gchar *metric;
GList *smtp_filters[SMTP_STAGE_MAX];
struct rspamd_dns_resolver *resolver;
+ struct event_base *ev_base;
};
enum rspamd_smtp_state {
@@ -110,6 +111,7 @@ struct smtp_session {
gboolean resolved;
gboolean esmtp;
struct rspamd_dns_resolver *resolver;
+ struct event_base *ev_base;
};
typedef gboolean (*smtp_filter_t)(struct smtp_session *session, gpointer filter_data);