]> granicus.if.org Git - apache/commit
mpm_winnt: Simplify the shutdown code that was waiting for multiple worker
authorEvgeny Kotkov <kotkov@apache.org>
Tue, 11 Jul 2017 16:51:09 +0000 (16:51 +0000)
committerEvgeny Kotkov <kotkov@apache.org>
Tue, 11 Jul 2017 16:51:09 +0000 (16:51 +0000)
commit92dc4453808b49cae210e95e2d3a5b1780f7bf09
tree0bac54d8e33a9333ccac464535fee155d845a532
parent5c1f5c7b2824da01840f234c25b06330783357fa
mpm_winnt: Simplify the shutdown code that was waiting for multiple worker
thread handles in batches.

Starting from r1801636, there is no difference between ending the wait with
one or multiple remaining threads.  This is because we terminate the process
if at least one thread is still active when we hit a timeout.

Therefore, instead of making an effort to evenly distribute and batch the
handles with WaitForMultipleObjects(), we could just start from one end,
and wait for one thread handle at a time.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1801637 13f79535-47bb-0310-9956-ffa450edef68
server/mpm/winnt/child.c