From ea11c20689fcec4afcda5553c63547bce10e0b54 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Wed, 21 Mar 2012 16:20:41 +0100 Subject: [PATCH] Added a way for discover refcount of Refcounted classes. --- sortix/refcount.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sortix/refcount.h b/sortix/refcount.h index 9ceb79c6..01e3622f 100644 --- a/sortix/refcount.h +++ b/sortix/refcount.h @@ -36,6 +36,7 @@ namespace Sortix public: void Refer(); void Unref(); + inline size_t Refcount() const { return refcount; } private: size_t refcount;