Added support for offloading Linux sendfile() in thread pools.

This commit is contained in:
Valentin Bartenev 2015-03-14 17:37:30 +03:00
parent a7ad493aa6
commit 7ed1a9681b
2 changed files with 187 additions and 8 deletions

View file

@ -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