mirror of
https://github.com/nginx/nginx.git
synced 2026-08-27 04:07:18 +00:00
Added support for offloading Linux sendfile() in thread pools.
This commit is contained in:
parent
a7ad493aa6
commit
7ed1a9681b
2 changed files with 187 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue