diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-06-08 19:16:56 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-06-08 19:16:56 +0100 |
commit | e7a43c0fb358c1947fa3e21f2f2442408372d348 (patch) | |
tree | e895630f0a9c21d88da6ef95e077f3baaa3cea13 /src/libserver/task.h | |
parent | e825c3d0d96836c341aeb252c95cf11bb7eab67b (diff) | |
download | rspamd-e7a43c0fb358c1947fa3e21f2f2442408372d348.tar.gz rspamd-e7a43c0fb358c1947fa3e21f2f2442408372d348.zip |
[Minor] Allow to set custom pool for a task
Diffstat (limited to 'src/libserver/task.h')
-rw-r--r-- | src/libserver/task.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libserver/task.h b/src/libserver/task.h index 549c49989..cc1cc492a 100644 --- a/src/libserver/task.h +++ b/src/libserver/task.h @@ -106,6 +106,7 @@ enum rspamd_task_stage { #define RSPAMD_TASK_FLAG_COMPRESSED (1 << 24) #define RSPAMD_TASK_FLAG_PROFILE (1 << 25) #define RSPAMD_TASK_FLAG_GREYLISTED (1 << 26) +#define RSPAMD_TASK_FLAG_OWN_POOL (1 << 27) #define RSPAMD_TASK_IS_SKIPPED(task) (((task)->flags & RSPAMD_TASK_FLAG_SKIP)) #define RSPAMD_TASK_IS_JSON(task) (((task)->flags & RSPAMD_TASK_FLAG_JSON)) @@ -205,8 +206,9 @@ struct rspamd_task { /** * Construct new task for worker */ -struct rspamd_task * rspamd_task_new (struct rspamd_worker *worker, - struct rspamd_config *cfg); +struct rspamd_task *rspamd_task_new (struct rspamd_worker *worker, + struct rspamd_config *cfg, + rspamd_mempool_t *pool); /** * Destroy task object and remove its IO dispatcher if it exists */ |