mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user