Merged revisions 104102 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Mon, 25 Feb 2008 23:19:31 +0000 (23:19 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 25 Feb 2008 23:19:31 +0000 (23:19 +0000)
commit16b84e260c2d9d8e35fd4e88df7ed88e271c402d
tree9cf5203ff622def8d4196c4841c104e1a2bffda6
parentf274f7bcaa32aa5c7c07f35d93e9c4371d8c43d4
Merged revisions 104102 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104102 | russell | 2008-02-25 17:19:05 -0600 (Mon, 25 Feb 2008) | 7 lines

Improve the lock tracking code a bit so that a bunch of old locks that threads
failed to lock don't sit around in the history.  When a lock is first locked,
this checks to see if the last lock in the list was one that was failed to be
locked.  If it is, then that was a lock that we're no longer sitting in a trylock
loop trying to lock, so just remove it.
(inspired by issue #11712)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104103 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/utils.c