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/map.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/map.h')
-rw-r--r-- | src/map.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -66,6 +66,7 @@ struct rspamd_map { void **user_data; struct event ev; struct timeval tv; + struct event_base *ev_base; void *map_data; }; @@ -81,7 +82,7 @@ gboolean add_map (const gchar *map_line, map_cb_t read_callback, map_fin_cb_t fi /** * Start watching of maps by adding events to libevent event loop */ -void start_map_watch (void); +void start_map_watch (struct event_base *ev_base); /** * Remove all maps watched (remove events) |