mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +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 46017ea15b
)
This commit is contained in:
committed by
Asterisk Development Team
parent
86ff4b8a5b
commit
8f97da052d
@@ -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