summaryrefslogtreecommitdiff
path: root/src/cairo-scaled-font-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-scaled-font-private.h
parent8b6c871c9084739460f1320cd36560a09477a83e (diff)
downloadcairo-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-scaled-font-private.h')
-rw-r--r--src/cairo-scaled-font-private.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-scaled-font-private.h b/src/cairo-scaled-font-private.h
index fa71644ae..f16487c5c 100644
--- a/src/cairo-scaled-font-private.h
+++ b/src/cairo-scaled-font-private.h
@@ -42,6 +42,7 @@
#include "cairo-types-private.h"
#include "cairo-mutex-type-private.h"
+#include "cairo-reference-count-private.h"
struct _cairo_scaled_font {
/* For most cairo objects, the rule for multiple threads is that
@@ -79,7 +80,7 @@ struct _cairo_scaled_font {
/* useful bits for _cairo_scaled_font_nil */
cairo_status_t status;
- unsigned int ref_count;
+ cairo_reference_count_t ref_count;
cairo_user_data_array_t user_data;
/* hash key members */