]> git.ipfire.org Git - thirdparty/asterisk.git/commit
channel.c: Remove dead AST_GENERATOR_FD code.
authorSean Bright <sean@seanbright.com>
Thu, 6 Feb 2025 16:35:27 +0000 (11:35 -0500)
committerSean Bright <sean@seanbright.com>
Tue, 11 Feb 2025 20:37:56 +0000 (20:37 +0000)
commit0883e5e44d49553d70d87d12dcd715c3f114ca32
treefc455530e06811fefdb726b02d1393a7ab08f0de
parenteedb73968bbb0663d23c29d42c220cf6a1964460
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.
include/asterisk/channel.h
main/channel.c