diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-06-04 14:13:06 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-06-05 07:32:07 +0100 |
commit | f4d9a4482fa1bfa37783ca139e3716c8d8649f32 (patch) | |
tree | abac075482a998a13415c91bf4b12990eb83cdfc /src/cairo-atomic-private.h | |
parent | 132f44dce1884c9beed8c5e6588140ee8fa9cfbe (diff) | |
download | cairo-f4d9a4482fa1bfa37783ca139e3716c8d8649f32.tar.gz |
[pattern] Generalise the freed pattern pool
Also cache recently freed surface and gradient patterns. With thanks to
Jonathan Morton for the inspiration and initial pointer pool code for
pixman.
Diffstat (limited to 'src/cairo-atomic-private.h')
-rw-r--r-- | src/cairo-atomic-private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-atomic-private.h b/src/cairo-atomic-private.h index 2914a0221..97e2e0f16 100644 --- a/src/cairo-atomic-private.h +++ b/src/cairo-atomic-private.h @@ -54,6 +54,7 @@ typedef int cairo_atomic_int_t; # define _cairo_atomic_int_inc(x) ((void) __sync_fetch_and_add(x, 1)) # define _cairo_atomic_int_dec_and_test(x) (__sync_fetch_and_add(x, -1) == 1) # define _cairo_atomic_int_cmpxchg(x, oldv, newv) __sync_val_compare_and_swap (x, oldv, newv) +# define _cairo_atomic_ptr_cmpxchg(x, oldv, newv) __sync_val_compare_and_swap (x, oldv, newv) #endif |