mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Added a way for discover refcount of Refcounted classes.
This commit is contained in:
parent
0f099c65ca
commit
ea11c20689
1 changed files with 1 additions and 0 deletions
|
@ -36,6 +36,7 @@ namespace Sortix
|
|||
public:
|
||||
void Refer();
|
||||
void Unref();
|
||||
inline size_t Refcount() const { return refcount; }
|
||||
|
||||
private:
|
||||
size_t refcount;
|
||||
|
|
Loading…
Reference in a new issue