diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-24 13:57:46 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-24 13:57:46 +0000 |
commit | b0a9fdafe95c495a9f9d9b9c991dabef9ae372be (patch) | |
tree | 7ff00c04f48a143d06522c90cfea66cda0783802 /channels/chan_h323.c | |
parent | 999f8818683ad240c603d7603a5ed6fab8906406 (diff) |
remove a DEBUG_THREADS message that accesses private lock fields.
If needed, the code to extract this information should be implemented
in some generic header or library and the function called here.
(closed bug #11362)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89543 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_h323.c')
-rw-r--r-- | channels/chan_h323.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/channels/chan_h323.c b/channels/chan_h323.c index b17965bdb..6c5e7a35e 100644 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -2357,10 +2357,13 @@ static void cleanup_connection(unsigned call_reference, const char *call_token) if (!pvt->owner || !ast_channel_trylock(pvt->owner)) break; #if 1 -#ifdef DEBUG_THREADS - ast_log(LOG_NOTICE, "Avoiding H.323 destory deadlock on %s, locked at %ld/%d by %s (%s:%d)\n", call_token, pvt->owner->lock.thread[0], pvt->owner->lock.reentrancy, pvt->owner->lock.func[0], pvt->owner->lock.file[0], pvt->owner->lock.lineno[0]); -#else ast_log(LOG_NOTICE, "Avoiding H.323 destory deadlock on %s\n", call_token); +#ifdef DEBUG_THREADS + /* XXX to be completed + * If we want to print more info on who is holding the lock, + * implement the relevant code in lock.h and use the routines + * supplied there. + */ #endif #endif ast_mutex_unlock(&pvt->lock); |