mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +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:
@@ -465,11 +465,7 @@ static struct ast_modem_driver aopen_driver =
|
||||
|
||||
int usecount(void)
|
||||
{
|
||||
int res;
|
||||
ast_mutex_lock(&usecnt_lock);
|
||||
res = usecnt;
|
||||
ast_mutex_unlock(&usecnt_lock);
|
||||
return res;
|
||||
return usecnt;
|
||||
}
|
||||
|
||||
int load_module(void)
|
||||
|
Reference in New Issue
Block a user