/[Apache-SVN]
ViewVC logotype

Revision 1801635


Jump to revision: Previous Next
Author: kotkov
Date: Tue Jul 11 16:41:51 2017 UTC (6 years, 9 months ago)
Changed paths: 1
Log Message:
mpm_winnt: Make the shutdown faster by avoiding unnecessary Sleep()'s
when shutting down the worker threads.

Previously, the shutdown code was posting an amount of I/O completion
packets equal to the amount of the threads blocked on the I/O completion
port.  Then it would Sleep() until all these threads "acknowledge" the
completion packets by decrementing the global amount of blocked threads.

A better way would be to send the number of IOCP_SHUTDOWN completion
packets equal to the total amount of threads and immediately proceed to
the next step.  There is no need to block until the threads actually receive
the completion, as the shutdown process includes a separate step that waits
until the threads exit, and the new approach avoids an unnecessary delay.


Changed paths

Path Details
Directoryhttpd/httpd/trunk/server/mpm/winnt/child.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26