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/core/ngx_file.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/core/ngx_file.h') 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 -- cgit