Make lock information for ao2_trylock be more useful and gnarly
authorMark Michelson <mmichelson@digium.com>
Thu, 12 Feb 2009 16:28:06 +0000 (16:28 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 12 Feb 2009 16:28:06 +0000 (16:28 +0000)
commit3a9d79f05624fe9ec5f1b7391fd9cb9c60756dca
tree08e260fab87992f69f95cacda7f3038f92cc0a2c
parentc873d72ca24ddaa4765a3c342f0100180e080c78
Make lock information for ao2_trylock be more useful and gnarly

Core show locks information involving an ao2_trylock did not
show the function that called ao2_trylock, but would instead
show ao2_trylock as the source of the lock. This is not useful
when trying to debug locking issues.

One bizarre note is that this logic is already in 1.4 but somehow
did not get merged to trunk or the 1.6.X branches.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@175121 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/astobj2.h
main/astobj2.c