summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_process.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_process.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_process.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nxt_process.h b/src/nxt_process.h
index a647c00a..aa3aa7a5 100644
--- a/src/nxt_process.h
+++ b/src/nxt_process.h
@@ -57,6 +57,7 @@ typedef struct {
nxt_pid_t pid;
nxt_queue_t ports; /* of nxt_port_t */
nxt_bool_t ready;
+ nxt_uint_t port_cleanups;
nxt_process_init_t *init;
@@ -88,7 +89,8 @@ NXT_EXPORT void nxt_process_arguments(nxt_task_t *task, char **orig_argv,
#define nxt_process_port_first(process) \
nxt_queue_link_data(nxt_queue_first(&process->ports), nxt_port_t, link)
-NXT_EXPORT void nxt_process_port_add(nxt_process_t *process, nxt_port_t *port);
+NXT_EXPORT void nxt_process_port_add(nxt_task_t *task, nxt_process_t *process,
+ nxt_port_t *port);
#define nxt_process_port_each(process, port) \
nxt_queue_each(port, &process->ports, nxt_port_t, link)