mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	* Found some more places to use ast_channel_lock_both().
* Minor optimization in ast_rtp_instance_early_bridge(). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@378789 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -1206,12 +1206,7 @@ int ast_udptl_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags, | ||||
| 	void *pvt1; | ||||
| 	int to; | ||||
|  | ||||
| 	ast_channel_lock(c0); | ||||
| 	while (ast_channel_trylock(c1)) { | ||||
| 		ast_channel_unlock(c0); | ||||
| 		usleep(1); | ||||
| 		ast_channel_lock(c0); | ||||
| 	} | ||||
| 	ast_channel_lock_both(c0, c1); | ||||
| 	pr0 = get_proto(c0); | ||||
| 	pr1 = get_proto(c1); | ||||
| 	if (!pr0) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user