summaryrefslogtreecommitdiff
path: root/src/cairo-atomic-private.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-06-05 18:29:40 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-06-05 18:29:40 +0100
commit4ae5e2d44555a7219eb76ee187a8f588606c112f (patch)
treed635ec49699126ed28e6885681b1c4ccb0fa9748 /src/cairo-atomic-private.h
parenta1d0a06b6275cac3974be84919993e187394fe43 (diff)
[atomic] Provide mutex-based ptr cmpxchg
To handle those CPUs where we do not have an atomic cmpxchg.
Diffstat (limited to 'src/cairo-atomic-private.h')
-rw-r--r--src/cairo-atomic-private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cairo-atomic-private.h b/src/cairo-atomic-private.h
index 97e2e0f1..a1de13eb 100644
--- a/src/cairo-atomic-private.h
+++ b/src/cairo-atomic-private.h
@@ -72,6 +72,9 @@ _cairo_atomic_int_dec_and_test (int *x);
cairo_private int
_cairo_atomic_int_cmpxchg (int *x, int oldv, int newv);
+cairo_private void *
+_cairo_atomic_ptr_cmpxchg (void **x, void *oldv, void *newv);
+
#endif