Discovered in experiments on core files: if you wrap the lock and unlock calls with...
authorSteve Murphy <murf@digium.com>
Tue, 31 Jul 2007 03:32:04 +0000 (03:32 +0000)
committerSteve Murphy <murf@digium.com>
Tue, 31 Jul 2007 03:32:04 +0000 (03:32 +0000)
commit2cad4fea1ae8c8478005bf5d46708e6329071164
treec01a7d79e4e1e201e60eb9dd1c8dbf22fc644708
parent20bbd09de3f3de70a0b365082795d90614fc4532
Discovered in experiments on core files: if you wrap the lock and unlock calls with sip_pvt_lock and sip_pvt_unlock, you lose the tracing info you would normally get via DETECT_DEADLOCKS; so I turn these two functions into macros when DETECT_DEADLOCKS is called. This way, you get meaningful stuff in the file and func slots in the lock_info struct.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77810 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c