nginx/src
Maxim Dounin 10c8c8d6a4 Threads: offloading of temp files writing to thread pools.
The ngx_thread_write_chain_to_file() function introduced, which
uses ngx_file_t thread_handler, thread_ctx and thread_task fields.
The task context structure (ngx_thread_file_ctx_t) is the same for
both reading and writing, and can be safely shared as long as
operations are serialized.

The task->handler field is now always set (and not only when task is
allocated), as the same task can be used with different handlers.

The thread_write flag is introduced in the ngx_temp_file_t structure
to explicitly enable use of ngx_thread_write_chain_to_file() in
ngx_write_chain_to_temp_file() when supported by caller.

In collaboration with Valentin Bartenev.
2016-03-18 06:44:03 +03:00
..
core Threads: offloading of temp files writing to thread pools. 2016-03-18 06:44:03 +03:00
event Fixed timeouts with threaded sendfile() and subrequests. 2016-03-18 05:04:45 +03:00
http Threads: task pointer stored in ngx_file_t. 2016-03-18 06:43:52 +03:00
mail Dynamic modules: changed ngx_modules to cycle->modules. 2016-02-04 18:30:21 +03:00
misc Style: fix typo. 2014-07-08 03:03:14 -07:00
mysql Copyright updated. 2012-01-18 15:07:43 +00:00
os Threads: offloading of temp files writing to thread pools. 2016-03-18 06:44:03 +03:00
stream Stream: post first read events from client and upstream. 2016-03-15 15:55:23 +03:00