[asterisk-commits] russell: trunk r48927 - /trunk/include/asterisk/lock.h

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Dec 23 12:51:57 MST 2006


Author: russell
Date: Sat Dec 23 13:51:56 2006
New Revision: 48927

URL: http://svn.digium.com/view/asterisk?view=rev&rev=48927
Log:
Use the correct function to destroy an rwlock in the destructor for an ast_rwlock_t

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=48927&r1=48926&r2=48927
==============================================================================
--- trunk/include/asterisk/lock.h (original)
+++ trunk/include/asterisk/lock.h Sat Dec 23 13:51:56 2006
@@ -672,7 +672,7 @@
 } \
 static void  __attribute__ ((destructor)) fini_##rwlock(void) \
 { \
-        ast_mutex_destroy(&rwlock); \
+        ast_rwlock_destroy(&rwlock); \
 }
 #else
 #define AST_RWLOCK_INIT_VALUE PTHREAD_RWLOCK_INITIALIZER



More information about the asterisk-commits mailing list