From 302a04b09ca706eeda9b8cceb50694f37973e348 Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Sat, 29 Jun 2013 12:41:39 -0700 Subject: Add accessors for refcount value --- src/util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index e0088399c..a97c9bf39 100644 --- a/src/util.h +++ b/src/util.h @@ -221,6 +221,9 @@ typedef void (*git_refcount_freeptr)(void *r); #define GIT_REFCOUNT_OWNER(r) (((git_refcount *)(r))->owner) +#define GIT_REFCOUNT_VAL(r) git_atomic_get(&((git_refcount *)(r))->refcount) + + static signed char from_hex[] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, /* 00 */ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, /* 10 */ -- cgit v1.2.3