mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-24 05:38:11 +00:00
don't use locks when reading usecounts (reading only, not writing)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5994 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1111,11 +1111,7 @@ char *description()
|
||||
|
||||
int usecount()
|
||||
{
|
||||
int res;
|
||||
ast_mutex_lock(&usecnt_lock);
|
||||
res = usecnt;
|
||||
ast_mutex_unlock(&usecnt_lock);
|
||||
return res;
|
||||
return usecnt;
|
||||
}
|
||||
|
||||
char *key()
|
||||
|
||||
Reference in New Issue
Block a user