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

@@ -236,8 +236,11 @@ int ast_app_group_discard(struct ast_channel *chan);
/*! Update all group counting for a channel to a new one */
int ast_app_group_update(struct ast_channel *oldchan, struct ast_channel *newchan);
/*! Lock the group count list */
int ast_app_group_list_lock(void);
/*! Write Lock the group count list */
int ast_app_group_list_wrlock(void);
/*! Read Lock the group count list */
int ast_app_group_list_rdlock(void);
/*! Get the head of the group count list */
struct ast_group_info *ast_app_group_list_head(void);