]> granicus.if.org Git - apache/commit
mpm_event: remove atomics for timeout_queue's total counter.
authorYann Ylavic <ylavic@apache.org>
Tue, 2 Jan 2018 15:55:53 +0000 (15:55 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 2 Jan 2018 15:55:53 +0000 (15:55 +0000)
commitf786ddb6c77dd1501194e23605b6e1eb8c96f41b
tree43047f272f59560e30b8eed9d6d1ca176f2e0078
parentd3792903cfa2f2de282aace47a442b26d5e86c00
mpm_event: remove atomics for timeout_queue's total counter.

It's always updated under the timeout_mutex lock, or read for logging and
scoreboard updates (not critical).

For the read cases a volatile access is enough, while removing the atomic ops
for the already protected write cases saves cycles and context switches.

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