[Asterisk-cvs] asterisk/include/asterisk lock.h,1.7,1.8

citats at lists.digium.com citats at lists.digium.com
Sat Mar 20 00:11:53 CST 2004


Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/home/citats/cvs/asterisk/include/asterisk

Modified Files:
	lock.h 
Log Message:
Add some comments to lock.h


Index: lock.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/lock.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- lock.h	15 Mar 2004 08:36:25 -0000	1.7
+++ lock.h	20 Mar 2004 05:07:21 -0000	1.8
@@ -20,11 +20,11 @@
 #define AST_PTHREADT_STOP (pthread_t) -2
 
 #ifdef DEBUG_THREADS
+
 #ifdef THREAD_CRASH
 #define DO_THREAD_CRASH do { *((int *)(0)) = 1; } while(0)
 #endif
 
-
 #include <errno.h>
 #include <string.h>
 #include <stdio.h>
@@ -164,7 +164,7 @@
 #define pthread_mutex_init use_ast_pthread_mutex_init_instead_of_pthread_mutex_init
 #define pthread_mutex_destroy use_ast_pthread_mutex_destroy_instead_of_pthread_mutex_destroy
 
-#else
+#else /* DEBUG_THREADS */
 
 #define AST_MUTEX_INITIALIZER      PTHREAD_MUTEX_INITIALIZER
 #ifdef PTHREAD_MUTEX_FAST_NP
@@ -182,7 +182,7 @@
 #define ast_pthread_mutex_init(t,a) pthread_mutex_init(t,a)
 #define ast_mutex_destroy(t) pthread_mutex_destroy(t)
 
-#endif
+#endif /* DEBUG_THREADS */
 
 
 #endif




More information about the svn-commits mailing list