git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47073
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
static const char tdesc[] = "Feature Proxy Channel Driver";
-static int usecnt =0;
-AST_MUTEX_DEFINE_STATIC(usecnt_lock);
-
#define IS_OUTBOUND(a,b) (a == b->chan ? 1 : 0)
struct feature_sub {
p->subs[index].owner = tmp;
if (!p->owner)
p->owner = tmp;
- ast_mutex_lock(&usecnt_lock);
- usecnt++;
- ast_mutex_unlock(&usecnt_lock);
- ast_update_use_count();
return tmp;
}