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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user