summaryrefslogtreecommitdiff
path: root/funcs/func_groupcount.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-06-13 18:23:12 +0000
committerJoshua Colp <jcolp@digium.com>2007-06-13 18:23:12 +0000
commit679733c52a8ba2e0aae4fef9514d87323a9ca252 (patch)
tree58936ee18424560b11ef9150cc96f8f1d9bfb515 /funcs/func_groupcount.c
parentc4c732578fc3cc7c0e361896434b24f1f94d3f94 (diff)
Use read/write lock based lists for group counting.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69130 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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) {