]> git.ipfire.org Git - thirdparty/asterisk.git/commit
stream: Make the topology a reference counted object.
authorJoshua Colp <jcolp@digium.com>
Fri, 20 Apr 2018 23:12:53 +0000 (23:12 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 3 May 2018 16:29:39 +0000 (11:29 -0500)
commit0ad4d2301c9f14f8797cc8a388a8b01d55fc1456
treeb9d71cb8f0cc708db7ac7d8fdf58c7f038eeb330
parenta8d321bdf2c10128e718c9b9800617277eec3990
stream: Make the topology a reference counted object.

The stream topology has no lock of its own resulting in
another lock protecting it in some way (for example the
channel lock). If multiple channels are being juggled at
the same time this can be problematic. This change makes
the topology a reference counted object instead which
guarantees it will remain valid even without the channel
lock being held.

Change-Id: I4f4d3dd856a033ed55fe218c3a4fab364afedb03
bridges/bridge_softmix.c
include/asterisk/stream.h
main/stream.c