]> git.ipfire.org Git - thirdparty/asterisk.git/commit
taskprocessor.c: Tweak high water checks. 77/3477/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:58 +0000 (11:59 -0500)
commit7f9789fc398b3af447cba12204dd58189d408feb
tree5cb7eea8159801ecf6a4fc8e927b06d5941963b4
parentb08497c04847014bf4def77d20f49782acc53893
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