summaryrefslogtreecommitdiff
path: root/src/cairo-surface-private.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2007-09-23 21:08:09 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2007-09-25 16:29:54 +0100
commit03be41151d06d48d55bc1e172535829ec45a10cf (patch)
tree4dc280d45c96a39b681065386ab817099cfb65bd /src/cairo-surface-private.h
parent8b6c871c9084739460f1320cd36560a09477a83e (diff)
[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-surface-private.h')
-rw-r--r--src/cairo-surface-private.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-surface-private.h b/src/cairo-surface-private.h
index a0b50c52..efd4365e 100644
--- a/src/cairo-surface-private.h
+++ b/src/cairo-surface-private.h
@@ -41,6 +41,7 @@
#include "cairo.h"
#include "cairo-types-private.h"
+#include "cairo-reference-count-private.h"
struct _cairo_surface {
const cairo_surface_backend_t *backend;
@@ -52,7 +53,7 @@ struct _cairo_surface {
cairo_content_t content;
- unsigned int ref_count;
+ cairo_reference_count_t ref_count;
cairo_status_t status;
cairo_bool_t finished;
cairo_user_data_array_t user_data;