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:
Kevin P. Fleming
2005-06-23 17:30:56 +00:00
parent 442f3b15a1
commit 6a0fdb312f
12 changed files with 12 additions and 96 deletions

View File

@@ -555,14 +555,7 @@ int unload_module()
int usecount()
{
int res;
if (ast_mutex_lock(&wav_lock)) {
ast_log(LOG_WARNING, "Unable to lock wav list\n");
return -1;
}
res = glistcnt;
ast_mutex_unlock(&wav_lock);
return res;
return glistcnt;
}
char *description()