mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +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:
@@ -1102,11 +1102,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