diff options
author | Luigi Rizzo <rizzo@icir.org> | 2007-11-15 16:20:47 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2007-11-15 16:20:47 +0000 |
commit | 09d9cce1d8df6e181b60cd00fb1708ebe012069d (patch) | |
tree | 893184ac838560b42d47dd3e9c413812c920645b /apps/app_channelredirect.c | |
parent | 139978dbb7388060c3d24fdd3a356744170c1ef8 (diff) |
access channel locks through ast_channel_lock/unlock/trylock and not
through ast_mutex primitives.
To detect all occurrences, I have renamed the lock field in struct ast_channel
so it is clear that it shouldn't be used directly.
There are some uses in res/res_features.c (see details of the diff)
that are error prone as they try and lock two channels without
caring about the order (or without explaining why it is safe).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89293 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_channelredirect.c')
-rw-r--r-- | apps/app_channelredirect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_channelredirect.c b/apps/app_channelredirect.c index 0f654251f..6df4cb8d1 100644 --- a/apps/app_channelredirect.c +++ b/apps/app_channelredirect.c @@ -81,7 +81,7 @@ static int asyncgoto_exec(struct ast_channel *chan, void *data) res = ast_parseable_goto(chan2, args.label); - ast_mutex_unlock(&chan2->lock); + ast_channel_unlock(chan2); quit: return res; |