[cairo-commit] src/cairo-mutex.c

Mathias Hasselmann hasselmm at kemper.freedesktop.org
Thu Apr 19 04:48:06 PDT 2007


 src/cairo-mutex.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

New commits:
diff-tree cc8841645cd7aa06ae48cbad804b31b3c0c2146b (from 39a633a8f3618f3b1adb3eefdf36e2fc6d896054)
Author: Mathias Hasselmann <mathias.hasselmann at gmx.de>
Date:   Thu Apr 19 13:47:45 2007 +0200

    Properly use CAIRO_MUTEX_{INIT,FINI} and remove CAIRO_MUTEX_LIST_PRIVATE_H sentinal before explicitly including the mutex list.

diff --git a/src/cairo-mutex.c b/src/cairo-mutex.c
index 03b08e5..70cd31a 100644
--- a/src/cairo-mutex.c
+++ b/src/cairo-mutex.c
@@ -47,9 +47,10 @@ void _cairo_mutex_initialize (void)
 
     _cairo_mutex_initialized = TRUE;
 
-#define CAIRO_MUTEX_DECLARE(mutex) CAIRO_MUTEX_INIT (mutex);
+#define  CAIRO_MUTEX_DECLARE(mutex) CAIRO_MUTEX_INIT (&mutex);
+#undef   CAIRO_MUTEX_LIST_PRIVATE_H
 #include "cairo-mutex-list-private.h"
-#undef CAIRO_MUTEX_DECLARE
+#undef   CAIRO_MUTEX_DECLARE
 }
 
 void _cairo_mutex_finalize (void)
@@ -59,9 +60,10 @@ void _cairo_mutex_finalize (void)
 
     _cairo_mutex_initialized = FALSE;
 
-#define CAIRO_MUTEX_DECLARE(mutex) CAIRO_MUTEX_FINI (mutex)
+#define  CAIRO_MUTEX_DECLARE(mutex) CAIRO_MUTEX_FINI (&mutex)
+#undef   CAIRO_MUTEX_LIST_PRIVATE_H
 #include "cairo-mutex-list-private.h"
-#undef CAIRO_MUTEX_DECLARE
+#undef   CAIRO_MUTEX_DECLARE
 }
 
 #endif


More information about the cairo-commit mailing list