Added a way for discover refcount of Refcounted classes.
This commit is contained in:
parent
0f099c65ca
commit
ea11c20689
|
@ -36,6 +36,7 @@ namespace Sortix
|
||||||
public:
|
public:
|
||||||
void Refer();
|
void Refer();
|
||||||
void Unref();
|
void Unref();
|
||||||
|
inline size_t Refcount() const { return refcount; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
size_t refcount;
|
size_t refcount;
|
||||||
|
|
Loading…
Reference in New Issue