mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 18:55:19 +00:00 
			
		
		
		
	channel.c: Remove dead AST_GENERATOR_FD code.
Nothing ever sets the `AST_GENERATOR_FD`, so this block of code will
never execute. It also is the only place where the `generate` callback
is called with the channel lock held which made it difficult to reason
about the thread safety of `ast_generator`s.
In passing, also note that `AST_AGENT_FD` isn't used either.
(cherry picked from commit 2cc2710e5f)
			
			
This commit is contained in:
		
				
					committed by
					
						 Asterisk Development Team
						Asterisk Development Team
					
				
			
			
				
	
			
			
			
						parent
						
							b7eff883b1
						
					
				
				
					commit
					2ab3117e0c
				
			| @@ -201,8 +201,8 @@ extern "C" { | ||||
|  */ | ||||
| #define AST_ALERT_FD	(AST_MAX_FDS-1)		/*!< used for alertpipe */ | ||||
| #define AST_TIMING_FD	(AST_MAX_FDS-2)		/*!< used for timingfd */ | ||||
| #define AST_AGENT_FD	(AST_MAX_FDS-3)		/*!< used by agents for pass through */ | ||||
| #define AST_GENERATOR_FD	(AST_MAX_FDS-4)	/*!< used by generator */ | ||||
| #define AST_AGENT_FD	(AST_MAX_FDS-3)		/*!< unused - formerly used by agents for pass through */ | ||||
| #define AST_GENERATOR_FD	(AST_MAX_FDS-4)	/*!< unused - formerly used by generator */ | ||||
| #define AST_JITTERBUFFER_FD	(AST_MAX_FDS-5)	/*!< used by generator */ | ||||
|  | ||||
| enum ast_bridge_result { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user