diff options
author | Russell Bryant <russell@russellbryant.com> | 2006-05-10 15:30:59 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2006-05-10 15:30:59 +0000 |
commit | 932c5c7fd73c36dc1bc5e056b025b4a57861fbf8 (patch) | |
tree | 01d5ec67b53cac9f9d0ca913019fc14cc5d220fd /funcs | |
parent | e0f0f4b4a430858766e599354ef51b60019f8658 (diff) |
use the channel lock wrappers (issue #7120, Mithraen)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26528 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs')
-rw-r--r-- | funcs/func_channel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/funcs/func_channel.c b/funcs/func_channel.c index 3fe5db240..a181fec4f 100644 --- a/funcs/func_channel.c +++ b/funcs/func_channel.c @@ -40,15 +40,15 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/stringfields.h" #define locked_copy_string(chan, dest, source, len) \ do { \ - ast_mutex_lock(&chan->lock); \ + ast_channel_lock(chan); \ ast_copy_string(dest, source, len); \ - ast_mutex_unlock(&chan->lock); \ + ast_channel_unlock(chan); \ } while (0) #define locked_string_field_set(chan, field, source) \ do { \ - ast_mutex_lock(&chan->lock); \ + ast_channel_lock(chan); \ ast_string_field_set(chan, field, source); \ - ast_mutex_unlock(&chan->lock); \ + ast_channel_unlock(chan); \ } while (0) static int func_channel_read(struct ast_channel *chan, char *function, |