ROOT-Sim core  3.0.0-rc.2
A General-Purpose Multi-threaded Parallel/Distributed Simulation Library
model_allocator.h
Go to the documentation of this file.
1 
11 #pragma once
12 
13 #include <datatypes/array.h>
14 #include <mm/buddy/multi.h>
15 
16 extern void model_allocator_lp_init(struct mm_state *self);
17 extern void model_allocator_lp_fini(struct mm_state *self);
18 extern void model_allocator_checkpoint_take(struct mm_state *self, array_count_t ref_i);
19 extern void model_allocator_checkpoint_next_force_full(struct mm_state *self);
20 extern array_count_t model_allocator_checkpoint_restore(struct mm_state *self, array_count_t ref_i);
21 extern array_count_t model_allocator_fossil_lp_collect(struct mm_state *self, array_count_t tgt_ref_i);
Dynamic array datatype.
uint_least32_t array_count_t
The type used to handle dynamic arrays count of elements and capacity.
Definition: array.h:21
Handling of multiple buddy systems.
The checkpointable memory context assigned to a single LP.
Definition: multi.h:35