[asterisk-commits] dlee: branch dlee/record r390884 - /team/dlee/record/include/asterisk/lock.h
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jun 7 13:35:42 CDT 2013
Author: dlee
Date: Fri Jun 7 13:35:40 2013
New Revision: 390884
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=390884
Log:
Not needed; maybe another time.
Modified:
team/dlee/record/include/asterisk/lock.h
Modified: team/dlee/record/include/asterisk/lock.h
URL: http://svnview.digium.com/svn/asterisk/team/dlee/record/include/asterisk/lock.h?view=diff&rev=390884&r1=390883&r2=390884
==============================================================================
--- team/dlee/record/include/asterisk/lock.h (original)
+++ team/dlee/record/include/asterisk/lock.h Fri Jun 7 13:35:40 2013
@@ -601,7 +601,7 @@
#define SCOPED_LOCK(varname, lock, lockfunc, unlockfunc) \
auto void _dtor_ ## varname (typeof((lock)) * v); \
auto void _dtor_ ## varname (typeof((lock)) * v) { unlockfunc(*v); } \
- typeof((lock)) varname __attribute__((cleanup(_dtor_ ## varname))) = (lockfunc((lock)), (lock))
+ typeof((lock)) varname __attribute__((cleanup(_dtor_ ## varname))) = lock; lockfunc((lock))
/*!
* \brief scoped lock specialization for mutexes
More information about the asterisk-commits
mailing list