[svn-commits] file: trunk r48928 - /trunk/include/asterisk/lock.h

svn-commits at lists.digium.com svn-commits at lists.digium.com
Sat Dec 23 12:55:39 MST 2006


Author: file
Date: Sat Dec 23 13:55:38 2006
New Revision: 48928

URL: http://svn.digium.com/view/asterisk?view=rev&rev=48928
Log:
We should probably declare the lock... and not just the constructor/deconstructor.

Modified:
    trunk/include/asterisk/lock.h

Modified: trunk/include/asterisk/lock.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/lock.h?view=diff&rev=48928&r1=48927&r2=48928
==============================================================================
--- trunk/include/asterisk/lock.h (original)
+++ trunk/include/asterisk/lock.h Sat Dec 23 13:55:38 2006
@@ -666,6 +666,7 @@
 
 #ifndef HAVE_PTHREAD_RWLOCK_INITIALIZER
 #define __AST_RWLOCK_DEFINE(scope, rwlock) \
+        scope ast_rwlock_t rwlock; \
 static void  __attribute__ ((constructor)) init_##rwlock(void) \
 { \
         ast_rwlock_init(&rwlock); \



More information about the svn-commits mailing list