]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
event: add/remove from/to the pollset outside of the critical sections.
authorYann Ylavic <ylavic@apache.org>
Wed, 28 Sep 2016 20:01:48 +0000 (20:01 +0000)
committerYann Ylavic <ylavic@apache.org>
Wed, 28 Sep 2016 20:01:48 +0000 (20:01 +0000)
commit5883237da4cfc50610b4b06089bf6a309574f033
tree2749cd6020970998268c287467165e5d1eb136c7
parent514e8d46971de44ba7bfc3e8e5772506900befb0
event: add/remove from/to the pollset outside of the critical sections.

We don't need external locking since it's created with APR_POLLSET_THREADSAFE,
hence reduce those sections to the lowest cycles possible.

A spinlock may be interesting instead of the mutex now, we won't block and the
TO_QUEUE_*() and process_timeout_queue() operations are fast...

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