[asterisk-dev] [Code Review] Add error checking to DEADLOCK_AVOIDANCE macro

Jeff Peeler jpeeler at digium.com
Thu Jul 1 13:23:27 CDT 2010


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/751/#review2321
-----------------------------------------------------------

Ship it!


Aside from the small error (I think) that is present this looks good to go. I do wonder though if the error messages need to contain the function name since the logger provides that information.


/branches/1.4/include/asterisk/lock.h
<https://reviewboard.asterisk.org/r/751/#comment5062>

    Shouldn't this be __res2?


- Jeff


On 2010-06-28 13:36:49, Tilghman Lesher wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/751/
> -----------------------------------------------------------
> 
> (Updated 2010-06-28 13:36:49)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> If DEADLOCK_AVOIDANCE is called in a situation where the lock is not held, a deadlock could result.  While this is a programming error, we should at the very least send up a warning about the problem.
> 
> 
> This addresses bug 17407.
>     https://issues.asterisk.org/view.php?id=17407
> 
> 
> Diffs
> -----
> 
>   /branches/1.4/channels/chan_agent.c 266141 
>   /branches/1.4/channels/chan_dahdi.c 266141 
>   /branches/1.4/channels/chan_h323.c 266141 
>   /branches/1.4/channels/chan_local.c 266141 
>   /branches/1.4/include/asterisk/lock.h 266141 
> 
> Diff: https://reviewboard.asterisk.org/r/751/diff
> 
> 
> Testing
> -------
> 
> No functional changes.  Runs better according to reporter.
> 
> 
> Thanks,
> 
> Tilghman
> 
>




More information about the asterisk-dev mailing list