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
This commit is contained in:
Joshua Colp
2007-06-13 18:23:12 +00:00
parent c4c732578f
commit 679733c52a
4 changed files with 38 additions and 30 deletions

View File

@@ -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) {