diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-06-05 18:29:40 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-06-05 18:29:40 +0100 |
commit | 4ae5e2d44555a7219eb76ee187a8f588606c112f (patch) | |
tree | d635ec49699126ed28e6885681b1c4ccb0fa9748 /src/cairo-atomic-private.h | |
parent | a1d0a06b6275cac3974be84919993e187394fe43 (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.h | 3 |
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 |