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

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Nov 2 09:51:28 MST 2006


Author: file
Date: Thu Nov  2 10:51:27 2006
New Revision: 46940

URL: http://svn.digium.com/view/asterisk?rev=46940&view=rev
Log:
Set the AST_RWLOCK_INIT_VALUE to the PTHREAD_RWLOCK_INIT_VALUE if it is available, that way outside stuff can determine whether to use a constructor or deconstructor for initialization instead of using the init value.

Modified:
    trunk/include/asterisk/lock.h

Modified: trunk/include/asterisk/lock.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/lock.h?rev=46940&r1=46939&r2=46940&view=diff
==============================================================================
--- trunk/include/asterisk/lock.h (original)
+++ trunk/include/asterisk/lock.h Thu Nov  2 10:51:27 2006
@@ -672,6 +672,7 @@
         ast_mutex_destroy(&rwlock); \
 }
 #else
+#define AST_RWLOCK_INIT_VALUE PTHREAD_RWLOCK_INITIALIZER
 #define __AST_RWLOCK_DEFINE(scope, rwlock) \
         scope ast_rwlock_t rwlock = AST_RWLOCK_INIT_VALUE
 #endif



More information about the asterisk-commits mailing list