[Asterisk-cvs] asterisk/include/asterisk lock.h,1.6.2.1,1.6.2.2

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


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

Modified Files:
      Tag: v1-0_stable
	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.6.2.1
retrieving revision 1.6.2.2
diff -u -d -r1.6.2.1 -r1.6.2.2
--- lock.h	15 Mar 2004 08:36:42 -0000	1.6.2.1
+++ lock.h	20 Mar 2004 05:07:28 -0000	1.6.2.2
@@ -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