From 803855138c3b714c088e42a32e80939a81785944 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Tue, 18 Jul 2017 00:21:16 +0300 Subject: Mem pool cleanup introduced. Used for connection mem pool cleanup, which can be used by buffers. Used for port mem pool to safely destroy linked process. --- src/nxt_main.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/nxt_main.h') diff --git a/src/nxt_main.h b/src/nxt_main.h index 05cca62b..547a0321 100644 --- a/src/nxt_main.h +++ b/src/nxt_main.h @@ -10,26 +10,29 @@ #include -#include -#include -#include -#include -#include -#include - typedef struct nxt_port_s nxt_port_t; typedef struct nxt_task_s nxt_task_t; typedef struct nxt_port_recv_msg_s nxt_port_recv_msg_t; typedef void (*nxt_port_handler_t)(nxt_task_t *task, nxt_port_recv_msg_t *msg); typedef struct nxt_sig_event_s nxt_sig_event_t; typedef struct nxt_runtime_s nxt_runtime_t; -typedef uint16_t nxt_port_id_t; typedef struct nxt_thread_s nxt_thread_t; typedef struct nxt_event_engine_s nxt_event_engine_t; typedef struct nxt_log_s nxt_log_t; typedef struct nxt_thread_pool_s nxt_thread_pool_t; +typedef void (*nxt_work_handler_t)(nxt_task_t *task, void *obj, void *data); + +#include +#include +#include +#include +#include +#include + +typedef uint16_t nxt_port_id_t; + #include #include -- cgit