[asterisk-commits] rizzo: trunk r47072 -
/trunk/channels/chan_skinny.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Nov 3 05:14:01 MST 2006
Author: rizzo
Date: Fri Nov 3 06:14:00 2006
New Revision: 47072
URL: http://svn.digium.com/view/asterisk?rev=47072&view=rev
Log:
remove useless usecnt handling code
Modified:
trunk/channels/chan_skinny.c
Modified: trunk/channels/chan_skinny.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_skinny.c?rev=47072&r1=47071&r2=47072&view=diff
==============================================================================
--- trunk/channels/chan_skinny.c (original)
+++ trunk/channels/chan_skinny.c Fri Nov 3 06:14:00 2006
@@ -865,10 +865,6 @@
/* driver scheduler */
static struct sched_context *sched;
static struct io_context *io;
-
-/* usage count and locking */
-static int usecnt = 0;
-AST_MUTEX_DEFINE_STATIC(usecnt_lock);
/* Protect the monitoring thread, so only one process can kill or start it, and not
when it's doing something critical. */
@@ -2754,10 +2750,6 @@
if (l->amaflags)
tmp->amaflags = l->amaflags;
- ast_mutex_lock(&usecnt_lock);
- usecnt++;
- ast_mutex_unlock(&usecnt_lock);
- ast_update_use_count();
tmp->callgroup = l->callgroup;
tmp->pickupgroup = l->pickupgroup;
ast_string_field_set(tmp, call_forward, l->call_forward);
More information about the asterisk-commits
mailing list