2007-05-22 Hans Boehm <Hans.Boehm@hp.com>
authorhboehm <hboehm>
Tue, 22 May 2007 19:38:13 +0000 (19:38 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:40 +0000 (21:06 +0400)
* include/private/gc_locks.h: Format to 80 columns.

ChangeLog
include/private/gc_locks.h

index be2b893..5ba092f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
 2007-05-22  Hans Boehm <Hans.Boehm@hp.com>
+
+       * include/private/gc_locks.h: Format to 80 columns.
+
+2007-05-22  Hans Boehm <Hans.Boehm@hp.com>
        
        * malloc.c(GC_free): Ignore bad frees on MSWIN32 with REDIRECT_MALLOC.
        * NT_MAKEFILE: msvc_dbg.h is in include/private.  Don't use cvars
index 13e81ec..de9e578 100644 (file)
@@ -92,7 +92,8 @@
 #      define THREAD_EQUAL(id1, id2) pthread_equal(id1, id2)
 #       undef NUMERIC_THREAD_ID_UNIQUE
 #    endif
-#    define NO_THREAD (-1l)  /* != NUMERIC_THREAD_ID(pthread_self()) for any thread */
+#    define NO_THREAD (-1l)
+               /* != NUMERIC_THREAD_ID(pthread_self()) for any thread */
 
 #    if !defined(THREAD_LOCAL_ALLOC) && !defined(USE_PTHREAD_LOCKS)
       /* In the THREAD_LOCAL_ALLOC case, the allocation lock tends to  */
 #        define UNCOND_UNLOCK() pthread_mutex_unlock(&GC_allocate_ml)
 #      endif /* !GC_ASSERTIONS */
 #    endif /* USE_PTHREAD_LOCKS */
-#    define SET_LOCK_HOLDER() GC_lock_holder = NUMERIC_THREAD_ID(pthread_self())
+#    define SET_LOCK_HOLDER() \
+               GC_lock_holder = NUMERIC_THREAD_ID(pthread_self())
 #    define UNSET_LOCK_HOLDER() GC_lock_holder = NO_THREAD
-#    define I_HOLD_LOCK() (!GC_need_to_lock \
-                          || GC_lock_holder == NUMERIC_THREAD_ID(pthread_self()))
+#    define I_HOLD_LOCK() \
+               (!GC_need_to_lock || \
+                GC_lock_holder == NUMERIC_THREAD_ID(pthread_self()))
 #    ifndef NUMERIC_THREAD_ID_UNIQUE
 #      define I_DONT_HOLD_LOCK() 1  /* Conservatively say yes */
 #    else
-#      define I_DONT_HOLD_LOCK() (!GC_need_to_lock \
-                          || GC_lock_holder != NUMERIC_THREAD_ID(pthread_self()))
+#      define I_DONT_HOLD_LOCK() \
+               (!GC_need_to_lock \
+                || GC_lock_holder != NUMERIC_THREAD_ID(pthread_self()))
 #    endif
      extern volatile GC_bool GC_collecting;
 #    define ENTER_GC() GC_collecting = 1;