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/http/ngx_http_core_module.h | |
| parent | 547c8f601f80c4dbdd16562fec3cf947581b300a (diff) | |
| download | nginx-a7ad493aa67c5f5204afbe50a42108d9e5b07c31.tar.gz nginx-a7ad493aa67c5f5204afbe50a42108d9e5b07c31.tar.bz2 | |
Added support for offloading read() in thread pools.
Diffstat (limited to 'src/http/ngx_http_core_module.h')
| -rw-r--r-- | src/http/ngx_http_core_module.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.h b/src/http/ngx_http_core_module.h index de7d4edcd..ac5ca4eab 100644 --- a/src/http/ngx_http_core_module.h +++ b/src/http/ngx_http_core_module.h @@ -13,6 +13,10 @@ #include <ngx_core.h> #include <ngx_http.h> +#if (NGX_THREADS) +#include <ngx_thread_pool.h> +#endif + #define NGX_HTTP_GZIP_PROXIED_OFF 0x0002 #define NGX_HTTP_GZIP_PROXIED_EXPIRED 0x0004 @@ -27,6 +31,7 @@ #define NGX_HTTP_AIO_OFF 0 #define NGX_HTTP_AIO_ON 1 +#define NGX_HTTP_AIO_THREADS 2 #define NGX_HTTP_SATISFY_ALL 0 @@ -421,6 +426,11 @@ struct ngx_http_core_loc_conf_s { #endif #endif +#if (NGX_THREADS) + ngx_thread_pool_t *thread_pool; + ngx_http_complex_value_t *thread_pool_value; +#endif + #if (NGX_HAVE_OPENAT) ngx_uint_t disable_symlinks; /* disable_symlinks */ ngx_http_complex_value_t *disable_symlinks_from; |
