]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mpm_event: Simplify pollset "good methods" vs APR_POLLSET_WAKEABLE.
authorYann Ylavic <ylavic@apache.org>
Fri, 12 Apr 2024 10:35:10 +0000 (10:35 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 12 Apr 2024 10:35:10 +0000 (10:35 +0000)
commitf9f742e7ba347ba207aaf23c4676e833a5cc8f1f
tree36b7aff86e2b14804c0a0c20a05bb644032bd88f
parenta9a10f36a996c8e509bc371f0f8b17cb3feaeb4d
mpm_event: Simplify pollset "good methods" vs APR_POLLSET_WAKEABLE.

* server/mpm/event/event.c(setup_threads_runtime):
  Simplify pollset creation code.

All pollset "good methods" implement APR_POLLSET_WAKEABLE and wake-ability
is quite important for MPM event's correctness anyway so simplify code around
pollset creation so as not to suggest that APR_POLLSET_NODEFAULT if favored
against APR_POLLSET_WAKEABLE.

While at it account for the wakeup pipe in the pollset_size since not all
pollset methods seem to do it internally in APR.

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