mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
don't take locks when reading usecounts, they are not necessary (bug #4585)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5983 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -229,14 +229,7 @@ int unload_module()
|
||||
|
||||
int usecount()
|
||||
{
|
||||
int res;
|
||||
if (ast_mutex_lock(&g729_lock)) {
|
||||
ast_log(LOG_WARNING, "Unable to lock g729 list\n");
|
||||
return -1;
|
||||
}
|
||||
res = glistcnt;
|
||||
ast_mutex_unlock(&g729_lock);
|
||||
return res;
|
||||
return glistcnt;
|
||||
}
|
||||
|
||||
char *description()
|
||||
|
Reference in New Issue
Block a user