]> git.ipfire.org Git - thirdparty/asterisk.git/commit
taskprocessor.c: Tweak high water checks. 76/3476/1
authorRichard Mudgett <rmudgett@digium.com>
Tue, 2 Aug 2016 18:53:35 +0000 (13:53 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 11 Aug 2016 16:59:08 +0000 (11:59 -0500)
commit9d4bd3d763635169751de02d44affbf574d8044e
treeb76a225a659e48c65d8b22795dc22016a9ba75ff
parent1a3cc843718a35eb69168304c54ec9e7caec6ffd
taskprocessor.c: Tweak high water checks.

* The high water check in ast_taskprocessor_alert_set_levels() would
trigger immediately if the new high water level is zero and the queue was
empty.

* The high water check in taskprocessor_push() was off by one.

Change-Id: I687729fb4efa6a0ba38ec9c1c133c4d407bc3d5d
main/taskprocessor.c