]> granicus.if.org Git - apache/commit
mpm_event: ap_queue_info_try_get_idler() may atomically decrement and then
authorYann Ylavic <ylavic@apache.org>
Thu, 20 Jul 2017 23:34:47 +0000 (23:34 +0000)
committerYann Ylavic <ylavic@apache.org>
Thu, 20 Jul 2017 23:34:47 +0000 (23:34 +0000)
commit7ea6d8b113bc4e3e02c982ce2ad77249beada007
treed815af62b3e7520df64a495e07aae0d10c93def5
parent7157b8a35eb64a659ad6a44feec824af2155f05f
mpm_event: ap_queue_info_try_get_idler() may atomically decrement and then
re-increment the number idlers if it went under or to zero.  We can avoid
this by switching to a compare-and-swap scheme.

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