[cairo-commit] src/cairoint.h

Carl Worth cworth at kemper.freedesktop.org
Tue Feb 6 18:27:33 PST 2007


 src/cairoint.h |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

New commits:
diff-tree 89cf8dbf522ce7ada0ee4cf9ea016ac2a89c8a75 (from 5d58e7ee66166b19e673c247fe41eae51f72fd92)
Author: Carl Worth <cworth at cworth.org>
Date:   Tue Feb 6 18:27:33 2007 -0800

    Remove half-leftover debugging code from previous commit
    
    This was leading to link failures on CAIRO_LOCK_FILE, etc.

diff --git a/src/cairoint.h b/src/cairoint.h
index 16f0316..5b6120f 100755
--- a/src/cairoint.h
+++ b/src/cairoint.h
@@ -138,8 +138,7 @@ CAIRO_BEGIN_DECLS
 # include <pthread.h>
 # define CAIRO_MUTEX_DECLARE(name) static pthread_mutex_t name = PTHREAD_MUTEX_INITIALIZER
 # define CAIRO_MUTEX_DECLARE_GLOBAL(name) pthread_mutex_t name = PTHREAD_MUTEX_INITIALIZER
-# define CAIRO_MUTEX_LOCK(name) \
-do { pthread_mutex_lock (&name); CAIRO_LOCK_FILE = __FILE__; CAIRO_LOCK_LINE = __LINE__; } while (0)
+# define CAIRO_MUTEX_LOCK(name) pthread_mutex_lock (&name)
 # define CAIRO_MUTEX_UNLOCK(name) pthread_mutex_unlock (&name)
 typedef pthread_mutex_t cairo_mutex_t;
 # define CAIRO_MUTEX_INIT(mutex) pthread_mutex_init ((mutex), NULL)


More information about the cairo-commit mailing list