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.
This commit is contained in:
Max Romanov
2017-10-04 15:01:15 +03:00
parent 730f5a9dd9
commit 85e485776b
4 changed files with 30 additions and 86 deletions

View File

@@ -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;