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-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-private.h')
-rw-r--r-- | src/cairo-private.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-private.h b/src/cairo-private.h index 14cc79aea..a5faec832 100644 --- a/src/cairo-private.h +++ b/src/cairo-private.h @@ -36,11 +36,12 @@ #ifndef CAIRO_PRIVATE_H #define CAIRO_PRIVATE_H +#include "cairo-reference-count-private.h" #include "cairo-gstate-private.h" #include "cairo-path-fixed-private.h" struct _cairo { - unsigned int ref_count; + cairo_reference_count_t ref_count; cairo_status_t status; |