[cairo-commit] 2 commits - configure.in src/cairo-mutex-list-private.h
Chris Wilson
ickle at kemper.freedesktop.org
Mon Nov 5 01:12:09 PST 2007
configure.in | 6 ++++++
src/cairo-mutex-list-private.h | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
New commits:
commit b3ef306f84944a45b389c1f4bfeae910baf5bcb0
Author: Chris Wilson <ickle at cube.localdomain>
Date: Mon Nov 5 09:09:14 2007 +0000
[cairo-atomic] Add a few more cpus that are known to have atomic access.
Add x86_64 and arm to the list of cpus which do not require memory
barriers for reading and writing integers/pointers atomically.
diff --git a/configure.in b/configure.in
index 7fbe408..8b433fc 100644
--- a/configure.in
+++ b/configure.in
@@ -108,6 +108,12 @@ case $host_cpu in
i?86)
cairo_atomic_op_needs_memory_barrier="no"
;;
+ x86_64)
+ cairo_atomic_op_needs_memory_barrier="no"
+ ;;
+ arm*)
+ cairo_atomic_op_needs_memory_barrier="no"
+ ;;
*)
cairo_atomic_op_needs_memory_barrier="yes"
;;
commit bd5ed9a3988910a41748b7d78a265a2968a48f23
Author: Chris Wilson <ickle at cube.localdomain>
Date: Mon Nov 5 09:05:25 2007 +0000
[cairo-atomic] Declare the mutex for NEEDS_MEMORY_BARRIER.
Whilst NEED_MEMORY_BARRIER should be a subset of ! HAS_ATOMIC_OPS,
until we have accurate configure tests NEED_MEMORY_BARRIER may be
invoked independently.
diff --git a/src/cairo-mutex-list-private.h b/src/cairo-mutex-list-private.h
index 9960797..89fe770 100644
--- a/src/cairo-mutex-list-private.h
+++ b/src/cairo-mutex-list-private.h
@@ -46,7 +46,7 @@ CAIRO_MUTEX_DECLARE (_cairo_ft_unscaled_font_map_mutex);
CAIRO_MUTEX_DECLARE (_cairo_xlib_display_mutex);
#endif
-#ifndef CAIRO_HAS_ATOMIC_OPS
+#if !defined (CAIRO_HAS_ATOMIC_OPS) || defined (CAIRO_ATOMIC_OP_NEEDS_MEMORY_BARRIER)
CAIRO_MUTEX_DECLARE (_cairo_atomic_mutex);
#endif
More information about the cairo-commit
mailing list