diff options
author | Juan Linietsky <reduzio@gmail.com> | 2019-06-10 12:38:51 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2020-02-11 11:53:26 +0100 |
commit | 4f163972bbd9c7379b01a1f9aa5310646ca7865e (patch) | |
tree | 3bbf4693663d8fc071912c114af782736ea17168 /core/rid_owner.cpp | |
parent | 1522d8c3ee6ddf43267f124940f4e43612058407 (diff) |
Refactored RID/RID_Owner to always use O(1) allocation.
* Implements a growing chunked allocator
* Removed redudant methods get and getptr, only getornull is supported now.
Diffstat (limited to 'core/rid_owner.cpp')
-rw-r--r-- | core/rid_owner.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/rid_owner.cpp b/core/rid_owner.cpp new file mode 100644 index 0000000000..6ebb5ceecc --- /dev/null +++ b/core/rid_owner.cpp @@ -0,0 +1,3 @@ +#include "rid_owner.h" + +volatile uint64_t RID_AllocBase::base_id = 1; |