From a503b8859c37906ab5012db163daca43bfe393bb Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sat, 21 May 2011 17:35:21 -0700 Subject: Make all handlers objects refcounted. I'm realizing that basically all upb objects will need to be refcounted to be sharable across languages, but *not* messages which are on their way out so we can get out of the business of data representations. Things which must be refcounted: - encoders, decoders - handlers objects - defs --- src/upb_string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/upb_string.h') diff --git a/src/upb_string.h b/src/upb_string.h index e017268..1463bbf 100644 --- a/src/upb_string.h +++ b/src/upb_string.h @@ -59,7 +59,7 @@ extern "C" { // the associated functions. struct _upb_string { // The string's refcount. - upb_atomic_refcount_t refcount; + upb_atomic_t refcount; // The pointer to our currently active data. This may be memory we own // or a pointer into memory we don't own. -- cgit v1.2.3