diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-10-04 15:01:15 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-10-04 15:01:15 +0300 |
commit | 85e485776b9c52e1762e6cc53406e956c604d9de (patch) | |
tree | 96212e3790e6d331ca4e91cfb02405068546038e /src/nxt_port.h | |
parent | 730f5a9dd9b3674246d06d18e05c8899e018ef5f (diff) | |
download | unit-85e485776b9c52e1762e6cc53406e956c604d9de.tar.gz unit-85e485776b9c52e1762e6cc53406e956c604d9de.tar.bz2 |
Using port 'post' facility to proxy remove pid message to workers.
Remove pid proxying to worker engines implementation was originally
overcomplicated. Memory pool and 2 engine posts (there and back again) are
optimized out and replaced with band new nxt_port_post() call.
Diffstat (limited to 'src/nxt_port.h')
-rw-r--r-- | src/nxt_port.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nxt_port.h b/src/nxt_port.h index fdb5a561..09ad6367 100644 --- a/src/nxt_port.h +++ b/src/nxt_port.h @@ -127,7 +127,11 @@ struct nxt_port_recv_msg_s { nxt_port_t *port; nxt_port_msg_t port_msg; size_t size; - nxt_port_t *new_port; + union { + nxt_port_t *new_port; + nxt_pid_t removed_pid; + void *data; + } u; }; typedef struct nxt_app_s nxt_app_t; |