[asterisk-commits] rizzo: trunk r47077 - in /trunk/channels: chan_gtalk.c chan_jingle.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Nov 3 05:24:08 MST 2006


Author: rizzo
Date: Fri Nov  3 06:24:08 2006
New Revision: 47077

URL: http://svn.digium.com/view/asterisk?rev=47077&view=rev
Log:
remove useless usecnt stuff


Modified:
    trunk/channels/chan_gtalk.c
    trunk/channels/chan_jingle.c

Modified: trunk/channels/chan_gtalk.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_gtalk.c?rev=47077&r1=47076&r2=47077&view=diff
==============================================================================
--- trunk/channels/chan_gtalk.c (original)
+++ trunk/channels/chan_gtalk.c Fri Nov  3 06:24:08 2006
@@ -164,9 +164,6 @@
 
 static const char desc[] = "Gtalk Channel";
 static const char type[] = "Gtalk";
-
-static int usecnt = 0;
-AST_MUTEX_DEFINE_STATIC(usecnt_lock);
 
 static int global_capability = AST_FORMAT_ULAW | AST_FORMAT_ALAW | AST_FORMAT_GSM | AST_FORMAT_H263;
 
@@ -952,9 +949,6 @@
 	if (!ast_strlen_zero(client->musicclass))
 		ast_string_field_set(tmp, musicclass, client->musicclass);
 	i->owner = tmp;
-	ast_mutex_lock(&usecnt_lock);
-	usecnt++;
-	ast_mutex_unlock(&usecnt_lock);
 	ast_copy_string(tmp->context, client->context, sizeof(tmp->context));
 	ast_copy_string(tmp->exten, i->exten, sizeof(tmp->exten));
 	ast_set_callerid(tmp, i->cid_num, i->cid_name, i->cid_num);
@@ -1456,9 +1450,6 @@
 	ast_mutex_unlock(&p->lock);
 
 	gtalk_free_pvt(client, p);
-	ast_mutex_lock(&usecnt_lock);
-	usecnt--;
-	ast_mutex_unlock(&usecnt_lock);
 
 	return 0;
 }

Modified: trunk/channels/chan_jingle.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_jingle.c?rev=47077&r1=47076&r2=47077&view=diff
==============================================================================
--- trunk/channels/chan_jingle.c (original)
+++ trunk/channels/chan_jingle.c Fri Nov  3 06:24:08 2006
@@ -161,9 +161,6 @@
 
 static const char desc[] = "Jingle Channel";
 static const char type[] = "Jingle";
-
-static int usecnt = 0;
-AST_MUTEX_DEFINE_STATIC(usecnt_lock);
 
 static int global_capability = AST_FORMAT_ULAW | AST_FORMAT_ALAW | AST_FORMAT_GSM | AST_FORMAT_H263;
 
@@ -810,9 +807,6 @@
 	if (!ast_strlen_zero(client->musicclass))
 		ast_string_field_set(tmp, musicclass, client->musicclass);
 	i->owner = tmp;
-	ast_mutex_lock(&usecnt_lock);
-	usecnt++;
-	ast_mutex_unlock(&usecnt_lock);
 	ast_copy_string(tmp->context, client->context, sizeof(tmp->context));
 	ast_copy_string(tmp->exten, i->exten, sizeof(tmp->exten));
 	ast_set_callerid(tmp, i->cid_num, i->cid_name, i->cid_num);
@@ -1347,9 +1341,6 @@
 	ast_mutex_unlock(&p->lock);
 
 	jingle_free_pvt(client, p);
-	ast_mutex_lock(&usecnt_lock);
-	usecnt--;
-	ast_mutex_unlock(&usecnt_lock);
 
 	return 0;
 }



More information about the asterisk-commits mailing list