diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-07-07 16:01:34 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-07-07 16:01:34 +0300 |
commit | f319220a6c4515f3d31e546b4f1f5de0b94aceb7 (patch) | |
tree | eb4a3ed43d9d7ebef794e51fba56715e65b5a936 /src/nxt_port.h | |
parent | c9fbd832ab4f5743824b155fb3bf3a42206fdd52 (diff) | |
download | unit-f319220a6c4515f3d31e546b4f1f5de0b94aceb7.tar.gz unit-f319220a6c4515f3d31e546b4f1f5de0b94aceb7.tar.bz2 |
Redirecting buffer completion handler to specific engine.
There is a case in router where we use port in router connection thread.
Buffers are allocated within connection memory pool which can be used only in
this router thread. sendmsg() can be postponed into main router thread and
completion handler will compare current engine and post itself to correct
engine.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_port.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nxt_port.h b/src/nxt_port.h index 66534cdc..927e0e2e 100644 --- a/src/nxt_port.h +++ b/src/nxt_port.h @@ -36,10 +36,13 @@ typedef struct { typedef struct { nxt_queue_link_t link; nxt_buf_t *buf; - nxt_mp_t *mem_pool; size_t share; nxt_fd_t fd; nxt_port_msg_t port_msg; + + nxt_work_t work; + nxt_event_engine_t *engine; + nxt_mp_t *mem_pool; } nxt_port_send_msg_t; |