[asterisk-dev] [Code Review] Fix deadlock when using originate from agent
Eliel Sardañons
eliels at gmail.com
Thu Nov 6 17:48:28 CST 2008
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.digium.com/r/35/#review91
-----------------------------------------------------------
branches/1.4/channels/chan_agent.c
<http://reviewboard.digium.com/r/35/#comment165>
Remember to cleanup this type of log.
- Eliel
On 2008-11-06 17:11:31, Jeff Peeler wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.digium.com/r/35/
> -----------------------------------------------------------
>
> (Updated 2008-11-06 17:11:31)
>
>
> Review request for Asterisk Developers.
>
>
> Summary
> -------
>
> This changes the behavior of __login_exec to use a pthread condition to wait rather than just waiting for a lock. Using a pthread condition frees the restraint of requiring the same thread to let execution continue (by unlocking the lock), which is important as originate uses multiple threads.
>
>
> This addresses bug 12269.
> http://bugs.digium.com/12269
>
>
> Diffs
> -----
>
> branches/1.4/channels/chan_agent.c 154966
>
> Diff: http://reviewboard.digium.com/r/35/diff
>
>
> Testing
> -------
>
> Testing done both here and by reporters show the problem is resolved, but I wanted to make sure I'm not missing anything as changing locking can be tricky.
>
>
> Thanks,
>
> Jeff
>
>
More information about the asterisk-dev
mailing list