mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-24 14:56: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:
@@ -210,9 +210,7 @@ void ast_unregister_atexit(void (*func)(void));
|
||||
}
|
||||
|
||||
#define STANDARD_USECOUNT(res) { \
|
||||
ast_mutex_lock(&localuser_lock); \
|
||||
res = localusecnt; \
|
||||
ast_mutex_unlock(&localuser_lock); \
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user