summaryrefslogtreecommitdiff
path: root/include/asterisk/app.h
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 /include/asterisk/app.h
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 'include/asterisk/app.h')
-rw-r--r--include/asterisk/app.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/asterisk/app.h b/include/asterisk/app.h
index 77e77bfb0..fc763d5f0 100644
--- a/include/asterisk/app.h
+++ b/include/asterisk/app.h
@@ -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);