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

@@ -923,7 +923,7 @@ static int group_show_channels(int fd, int argc, char *argv[])
ast_cli(fd, FORMAT_STRING, "Channel", "Group", "Category");
ast_app_group_list_lock();
ast_app_group_list_rdlock();
gi = ast_app_group_list_head();
while (gi) {