summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_main.h
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-07-18 00:21:16 +0300
committerMax Romanov <max.romanov@nginx.com>2017-07-18 00:21:16 +0300
commit803855138c3b714c088e42a32e80939a81785944 (patch)
treef19efadd82ecfb2aa42f93a1fa67c451ca690724 /src/nxt_main.h
parenteb675f2d78178b2cdd54d934022f9b739bfa8952 (diff)
downloadunit-803855138c3b714c088e42a32e80939a81785944.tar.gz
unit-803855138c3b714c088e42a32e80939a81785944.tar.bz2
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.
Diffstat (limited to '')
-rw-r--r--src/nxt_main.h19
1 files changed, 11 insertions, 8 deletions
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 <nxt_auto_config.h>
-#include <nxt_unix.h>
-#include <nxt_clang.h>
-#include <nxt_types.h>
-#include <nxt_time.h>
-#include <nxt_mp.h>
-#include <nxt_array.h>
-
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 <nxt_unix.h>
+#include <nxt_clang.h>
+#include <nxt_types.h>
+#include <nxt_time.h>
+#include <nxt_mp.h>
+#include <nxt_array.h>
+
+typedef uint16_t nxt_port_id_t;
+
#include <nxt_queue.h>
#include <nxt_thread_id.h>