diff options
author | Mark Michelson <mmichelson@digium.com> | 2007-11-21 16:08:12 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2007-11-21 16:08:12 +0000 |
commit | 29ad24e37a5fe1a5123a91dbe296012c261b8a92 (patch) | |
tree | 8964a7e32431b528a251c05d36710472f810aa35 /main | |
parent | 3826d15993f0a32ce10ba9683b3c291f7c286fbf (diff) |
I introduced a deadlock avoidance into 1.4, which I attempted to port to trunk as well.
Unfortunately, since trunk uses read/write locks for the context lock, it means that I have
actually *introduced* a deadlock condition since they are not recursive. Removing this change
for now and will look into introducing a different one.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89483 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/pbx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/main/pbx.c b/main/pbx.c index 09375b298..d72607579 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -2722,7 +2722,6 @@ static void handle_statechange(const char *device) { struct ast_hint *hint; - ast_rdlock_contexts(); AST_RWLIST_RDLOCK(&hints); AST_RWLIST_TRAVERSE(&hints, hint, list) { @@ -2760,7 +2759,6 @@ static void handle_statechange(const char *device) } AST_RWLIST_UNLOCK(&hints); - ast_unlock_contexts(); } static int statechange_queue(const char *dev) |