]> git.ipfire.org Git - thirdparty/asterisk.git/commit
named_locks: Use ao2_weakproxy to deal with cleanup from container. 84/3784/2
authorCorey Farrell <git@cfware.com>
Thu, 18 Aug 2016 18:28:57 +0000 (14:28 -0400)
committerCorey Farrell <git@cfware.com>
Fri, 2 Sep 2016 14:28:01 +0000 (10:28 -0400)
commit3af3860151cb6e11e04ffd8ca12944210a4c1c1a
tree108475e675fd9045b87705ca75f328ac157b9cfb
parente260e507f2ae26b0388e418b41d61b928b23ab5d
named_locks: Use ao2_weakproxy to deal with cleanup from container.

This allows standard ao2 functions to be used to release references to
an ast_named_lock.  This change can cause less frequent locking of the
global named_locks container.  The container is no longer locked when a
named_lock reference is being release except when this causes the
named_lock to be destroyed.

Change-Id: I644e39c6d83a153d71b3fae77ec05599d725e7e6
main/named_locks.c