ROOT-Sim core  3.0.0-rc.2
A General-Purpose Multi-threaded Parallel/Distributed Simulation Library
fossil.h
Go to the documentation of this file.
1 
12 #pragma once
13 
14 #include <core/core.h>
15 #include <lp/lp.h>
16 
22 #define fossil_is_needed(lp) ((lp)->fossil_epoch != fossil_epoch_current)
23 
25 extern __thread unsigned fossil_epoch_current;
26 
27 extern void fossil_on_gvt(simtime_t current_gvt);
28 extern void fossil_lp_collect(struct lp_ctx *lp);
double simtime_t
Simulation time data type.
Definition: ROOT-Sim.h:27
Core ROOT-Sim functionalities.
__thread unsigned fossil_epoch_current
The current fossil collection epoch.
Definition: fossil.c:14
void fossil_on_gvt(simtime_t current_gvt)
Perform fossil collection operations at a given GVT.
Definition: fossil.c:22
void fossil_lp_collect(struct lp_ctx *lp)
Perform fossil collection for the data structures of a certain LP.
Definition: fossil.c:32
LP construction functions.
A complete LP context.
Definition: lp.h:22