From 85e485776b9c52e1762e6cc53406e956c604d9de Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Wed, 4 Oct 2017 15:01:15 +0300 Subject: 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. --- src/nxt_port.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/nxt_port.h') 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; -- cgit