diff options
author | Valentin Bartenev <vbart@nginx.com> | 2015-03-14 17:37:25 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2015-03-14 17:37:25 +0300 |
commit | a7ad493aa67c5f5204afbe50a42108d9e5b07c31 (patch) | |
tree | 0c2277cd365146cfcbfc28ed8298620bcc7bf5cb /src/core/ngx_buf.h | |
parent | 547c8f601f80c4dbdd16562fec3cf947581b300a (diff) |
Added support for offloading read() in thread pools.
Diffstat (limited to 'src/core/ngx_buf.h')
-rw-r--r-- | src/core/ngx_buf.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/ngx_buf.h b/src/core/ngx_buf.h index 9ee1c588c..f652b20ef 100644 --- a/src/core/ngx_buf.h +++ b/src/core/ngx_buf.h @@ -90,15 +90,23 @@ struct ngx_output_chain_ctx_s { #endif unsigned need_in_memory:1; unsigned need_in_temp:1; -#if (NGX_HAVE_FILE_AIO) +#if (NGX_HAVE_FILE_AIO || NGX_THREADS) unsigned aio:1; +#endif +#if (NGX_HAVE_FILE_AIO) ngx_output_chain_aio_pt aio_handler; #if (NGX_HAVE_AIO_SENDFILE) ssize_t (*aio_preload)(ngx_buf_t *file); #endif #endif +#if (NGX_THREADS) + ngx_int_t (*thread_handler)(ngx_thread_task_t *task, + ngx_file_t *file); + ngx_thread_task_t *thread_task; +#endif + off_t alignment; ngx_pool_t *pool; |