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_file.h | |
parent | 547c8f601f80c4dbdd16562fec3cf947581b300a (diff) | |
download | nginx-a7ad493aa67c5f5204afbe50a42108d9e5b07c31.tar.gz nginx-a7ad493aa67c5f5204afbe50a42108d9e5b07c31.zip |
Added support for offloading read() in thread pools.
Diffstat (limited to 'src/core/ngx_file.h')
-rw-r--r-- | src/core/ngx_file.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/ngx_file.h b/src/core/ngx_file.h index 3ea6c28c8..301b1918b 100644 --- a/src/core/ngx_file.h +++ b/src/core/ngx_file.h @@ -23,6 +23,12 @@ struct ngx_file_s { ngx_log_t *log; +#if (NGX_THREADS) + ngx_int_t (*thread_handler)(ngx_thread_task_t *task, + ngx_file_t *file); + void *thread_ctx; +#endif + #if (NGX_HAVE_FILE_AIO) ngx_event_aio_t *aio; #endif |