mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +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:
		| @@ -2962,11 +2962,7 @@ int unload_module() | ||||
|  | ||||
| int usecount() | ||||
| { | ||||
| 	int res; | ||||
| 	ast_mutex_lock(&usecnt_lock); | ||||
| 	res = usecnt; | ||||
| 	ast_mutex_unlock(&usecnt_lock); | ||||
| 	return res; | ||||
| 	return usecnt; | ||||
| } | ||||
|  | ||||
| char *description() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user