mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-28 00:10:25 -07: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.
This commit is contained in:
@@ -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