diff options
author | reduz <reduzio@gmail.com> | 2021-08-23 20:57:52 -0300 |
---|---|---|
committer | reduz <reduzio@gmail.com> | 2021-08-23 21:55:45 -0300 |
commit | 65ca132a80760be9f4c0fe1a175445e867bb7ac8 (patch) | |
tree | 1798a0e9c5da9047319ff3c73bf555a9e9f4f8d3 /core/templates/rid_owner.h | |
parent | aa3c3a9ebbc096bba9eda324b91acbb7f14a7b07 (diff) |
Expose RID creation utilities.
* Exposed as utility functions.
* Not very useful for script, but vital for creating servers using native extensions.
Diffstat (limited to 'core/templates/rid_owner.h')
-rw-r--r-- | core/templates/rid_owner.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/core/templates/rid_owner.h b/core/templates/rid_owner.h index 8d139551ef..e947d2211c 100644 --- a/core/templates/rid_owner.h +++ b/core/templates/rid_owner.h @@ -53,14 +53,16 @@ protected: return rid; } - static uint64_t _gen_id() { - return base_id.increment(); - } - static RID _gen_rid() { return _make_from_id(_gen_id()); } + friend struct VariantUtilityFunctions; + + static uint64_t _gen_id() { + return base_id.increment(); + } + public: virtual ~RID_AllocBase() {} }; |