aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_file.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2015-03-14 17:37:25 +0300
committerValentin Bartenev <vbart@nginx.com>2015-03-14 17:37:25 +0300
commita7ad493aa67c5f5204afbe50a42108d9e5b07c31 (patch)
tree0c2277cd365146cfcbfc28ed8298620bcc7bf5cb /src/core/ngx_file.h
parent547c8f601f80c4dbdd16562fec3cf947581b300a (diff)
downloadnginx-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.h6
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