Make SCOPED_LOCK use RAII_VAR.
authorJason Parker <jparker@digium.com>
Tue, 9 Jul 2013 21:40:38 +0000 (21:40 +0000)
committerJason Parker <jparker@digium.com>
Tue, 9 Jul 2013 21:40:38 +0000 (21:40 +0000)
commit3355bb2fa5dd352a61a11aee14c84ea144f25756
tree6e3040eb53c47b4998f80c16f5e7dafbc67c60a2
parent5dbaee232c2c88f2017886a5e203c40dce948758
Make SCOPED_LOCK use RAII_VAR.

This fixes an issue with requiring SCOPED_LOCK to be the last variable
declaration and removes duplicate code in the process.

Review: https://reviewboard.asterisk.org/r/2665/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393919 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/lock.h