summaryrefslogtreecommitdiff
path: root/core/templates/rid_owner.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/templates/rid_owner.h')
-rw-r--r--core/templates/rid_owner.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/templates/rid_owner.h b/core/templates/rid_owner.h
index 3edc73b1a9..c4aa93c394 100644
--- a/core/templates/rid_owner.h
+++ b/core/templates/rid_owner.h
@@ -44,7 +44,7 @@
#include <typeinfo>
class RID_AllocBase {
- static volatile uint64_t base_id;
+ static SafeNumeric<uint64_t> base_id;
protected:
static RID _make_from_id(uint64_t p_id) {
@@ -54,7 +54,7 @@ protected:
}
static uint64_t _gen_id() {
- return atomic_increment(&base_id);
+ return base_id.increment();
}
static RID _gen_rid() {