diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2007-09-23 21:08:09 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2007-09-25 16:29:54 +0100 |
commit | 03be41151d06d48d55bc1e172535829ec45a10cf (patch) | |
tree | 4dc280d45c96a39b681065386ab817099cfb65bd /src/cairo-clip-private.h | |
parent | 8b6c871c9084739460f1320cd36560a09477a83e (diff) | |
download | cairo-03be41151d06d48d55bc1e172535829ec45a10cf.tar.gz |
[cairo-atomic] Rewrite reference counting using atomic ops.
Introduce an opaque cairo_reference_count_t and define operations on it
in terms of atomic ops. Update all users of reference counters to use
the new opaque type.
Diffstat (limited to 'src/cairo-clip-private.h')
-rw-r--r-- | src/cairo-clip-private.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cairo-clip-private.h b/src/cairo-clip-private.h index 7f880d85a..c2fe494bb 100644 --- a/src/cairo-clip-private.h +++ b/src/cairo-clip-private.h @@ -42,12 +42,12 @@ extern const cairo_private cairo_rectangle_list_t _cairo_rectangles_nil; struct _cairo_clip_path { - unsigned int ref_count; - cairo_path_fixed_t path; - cairo_fill_rule_t fill_rule; - double tolerance; - cairo_antialias_t antialias; - cairo_clip_path_t *prev; + cairo_reference_count_t ref_count; + cairo_path_fixed_t path; + cairo_fill_rule_t fill_rule; + double tolerance; + cairo_antialias_t antialias; + cairo_clip_path_t *prev; }; struct _cairo_clip { |