diff src/core/ngx_connection.h @ 6023:b550563ef96e

Added support for offloading Linux sendfile() in thread pools.
author Valentin Bartenev <vbart@nginx.com>
date Sat, 14 Mar 2015 17:37:30 +0300
parents 457ec43dd8d5
children c8acea7c7041
line wrap: on
line diff
--- 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