summaryrefslogtreecommitdiff
path: root/core/rid_owner.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2019-06-10 12:38:51 -0300
committerJuan Linietsky <reduzio@gmail.com>2020-02-11 11:53:26 +0100
commit4f163972bbd9c7379b01a1f9aa5310646ca7865e (patch)
tree3bbf4693663d8fc071912c114af782736ea17168 /core/rid_owner.cpp
parent1522d8c3ee6ddf43267f124940f4e43612058407 (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.cpp3
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;