Fix another bug in the DEBUG_THREADS code. The ast_mutex_init() function had
commit78d32a62325f521aa4e0252813adf000e04779fe
authorrussell <russell@614ede4d-c843-0410-af14-a771ab80d22e>
Fri, 7 Dec 2007 21:17:24 +0000 (7 21:17 +0000)
committerrussell <russell@614ede4d-c843-0410-af14-a771ab80d22e>
Fri, 7 Dec 2007 21:17:24 +0000 (7 21:17 +0000)
tree44f74c570d6ffd903c95e1b6b110b502322b6260
parent2be7477fbeb400fbe5d9854dccfb635398060c90
Fix another bug in the DEBUG_THREADS code.  The ast_mutex_init() function had
the mutex attribute object marked as static.  This means that multiple threads
initializing locks at the same time could step on each other and end up with
improperly initialized locks.
(found when tracking down locking issues related to issue #11080)

git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@91828 614ede4d-c843-0410-af14-a771ab80d22e
include/asterisk/lock.h