aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/func_groupcount.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-13 18:23:12 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-13 18:23:12 +0000
commit479087578ce7dc2f76cf0dc2d31ce8923063e6b2 (patch)
tree58936ee18424560b11ef9150cc96f8f1d9bfb515 /funcs/func_groupcount.c
parent89eb1c59764c788fa92b9c281fdf41381a7757c3 (diff)
Use read/write lock based lists for group counting.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69130 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs/func_groupcount.c')
-rw-r--r--funcs/func_groupcount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/funcs/func_groupcount.c b/funcs/func_groupcount.c
index 6737af219..a72277a36 100644
--- a/funcs/func_groupcount.c
+++ b/funcs/func_groupcount.c
@@ -100,7 +100,7 @@ static int group_function_read(struct ast_channel *chan, const char *cmd,
{
struct ast_group_info *gi = NULL;
- ast_app_group_list_lock();
+ ast_app_group_list_rdlock();
gi = ast_app_group_list_head();
while (gi) {
@@ -158,7 +158,7 @@ static int group_list_function_read(struct ast_channel *chan, const char *cmd,
if (!chan)
return -1;
- ast_app_group_list_lock();
+ ast_app_group_list_rdlock();
gi = ast_app_group_list_head();
while (gi) {