aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_connection.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2015-03-14 17:37:30 +0300
committerValentin Bartenev <vbart@nginx.com>2015-03-14 17:37:30 +0300
commit7ed1a9681bfca76e3cc08b51511d36c8c11fe449 (patch)
treed0545a06f65758c0920cbf9ac8f7b7a8618c7e05 /src/core/ngx_connection.h
parenta7ad493aa67c5f5204afbe50a42108d9e5b07c31 (diff)
downloadnginx-7ed1a9681bfca76e3cc08b51511d36c8c11fe449.tar.gz
nginx-7ed1a9681bfca76e3cc08b51511d36c8c11fe449.zip
Added support for offloading Linux sendfile() in thread pools.
Diffstat (limited to 'src/core/ngx_connection.h')
-rw-r--r--src/core/ngx_connection.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ngx_connection.h b/src/core/ngx_connection.h
index 207aea4f5..1867b4cbc 100644
--- a/src/core/ngx_connection.h
+++ b/src/core/ngx_connection.h
@@ -184,6 +184,10 @@ struct ngx_connection_s {
unsigned busy_count:2;
#endif
+#if (NGX_THREADS)
+ ngx_thread_task_t *sendfile_task;
+#endif
+
#if (NGX_OLD_THREADS)
ngx_atomic_t lock;
#endif