aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_files.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/os/unix/ngx_files.h
parent547c8f601f80c4dbdd16562fec3cf947581b300a (diff)
downloadnginx-a7ad493aa67c5f5204afbe50a42108d9e5b07c31.tar.gz
nginx-a7ad493aa67c5f5204afbe50a42108d9e5b07c31.zip
Added support for offloading read() in thread pools.
Diffstat (limited to 'src/os/unix/ngx_files.h')
-rw-r--r--src/os/unix/ngx_files.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/os/unix/ngx_files.h b/src/os/unix/ngx_files.h
index a046ee756..b6990bc6e 100644
--- a/src/os/unix/ngx_files.h
+++ b/src/os/unix/ngx_files.h
@@ -383,5 +383,10 @@ extern ngx_uint_t ngx_file_aio;
#endif
+#if (NGX_THREADS)
+ssize_t ngx_thread_read(ngx_thread_task_t **taskp, ngx_file_t *file,
+ u_char *buf, size_t size, off_t offset, ngx_pool_t *pool);
+#endif
+
#endif /* _NGX_FILES_H_INCLUDED_ */