From a7ad493aa67c5f5204afbe50a42108d9e5b07c31 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Sat, 14 Mar 2015 17:37:25 +0300 Subject: Added support for offloading read() in thread pools. --- src/os/unix/ngx_files.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/os/unix/ngx_files.h') 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_ */ -- cgit v1.2.3