diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-07-18 00:21:14 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-07-18 00:21:14 +0300 |
commit | eb675f2d78178b2cdd54d934022f9b739bfa8952 (patch) | |
tree | 0b072c752fff35cd5c4498cded7016a5738caa58 /src/nxt_port.h | |
parent | 47b359388cdf6348238e7fc05770426448049189 (diff) | |
download | unit-eb675f2d78178b2cdd54d934022f9b739bfa8952.tar.gz unit-eb675f2d78178b2cdd54d934022f9b739bfa8952.tar.bz2 |
Port allocation and destroy changed. Worker process stop introduced.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_port.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nxt_port.h b/src/nxt_port.h index 603540e2..d6156015 100644 --- a/src/nxt_port.h +++ b/src/nxt_port.h @@ -88,6 +88,7 @@ struct nxt_port_s { nxt_pid_t pid; nxt_process_type_t type; + nxt_work_t work; }; @@ -110,6 +111,10 @@ typedef union { } nxt_port_data_t; +nxt_port_t *nxt_port_new(nxt_port_id_t id, nxt_pid_t pid, + nxt_process_type_t type); +nxt_bool_t nxt_port_release(nxt_port_t *port); + nxt_port_id_t nxt_port_get_next_id(void); void nxt_port_reset_next_id(void); |