From 679733c52a8ba2e0aae4fef9514d87323a9ca252 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Wed, 13 Jun 2007 18:23:12 +0000 Subject: 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 --- include/asterisk/app.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include') 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); -- cgit v1.2.3