[asterisk-dev] [Code Review] 2665: Make SCOPED_LOCK use RAII_VAR directly

Jason Parker reviewboard at asterisk.org
Mon Jul 8 13:33:09 CDT 2013

This is an automatically generated e-mail. To reply, visit:

Review request for Asterisk Developers.

Repository: Asterisk


SCOPED_LOCK is a multi-line macro, which means that SCOPED_LOCK had to be after (all?) other declarations in a function.  This patch changes that.  Using ({ }) magic would have probably been enough, but it just uses RAII_VAR now, since that's exactly what the code did already.


  /trunk/include/asterisk/lock.h 393824 

Diff: https://reviewboard.asterisk.org/r/2665/diff/


Asterisk starts and stops.  A call through chan_sip didn't cause a deadlock.


Jason Parker

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130708/2ceee43f/attachment.htm>

More information about the asterisk-dev mailing list