bridge_multiplexed: Keep the multiplexed thread until no more bridges use it.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 31 Jan 2013 18:22:56 +0000 (18:22 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 31 Jan 2013 18:22:56 +0000 (18:22 +0000)
commita5fadc1e574ec3a671fcf8e58cb2f828ef047a88
tree6f8d8d2989619377536cac4750d53d54c18649ca
parent32ac38ea37881a9e5387561ea37ba767ba8c2745
bridge_multiplexed: Keep the multiplexed thread until no more bridges use it.

* Fixed the potential of losing the multiplexed bridge thread when the
last channel leaves and another joins while the multiplexed thread is
being shut down.

* Refactored and improved the management of the serviced channels array.

* Changed the channels count to a bridges count so it only needs to be
incremented rather than changed by two.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@380666 65c4cc65-6c06-0410-ace0-fbb531ad65f3
bridges/bridge_multiplexed.c