ROOT-Sim core  3.0.0-rc.2
A General-Purpose Multi-threaded Parallel/Distributed Simulation Library
Macros | Functions | Variables
fossil.h File Reference

Housekeeping operations. More...

#include <core/core.h>
#include <lp/lp.h>
Include dependency graph for fossil.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define fossil_is_needed(lp)   ((lp)->fossil_epoch != fossil_epoch_current)
 Check whether a LP needs to perform fossil collection. More...
 

Functions

void fossil_on_gvt (simtime_t current_gvt)
 Perform fossil collection operations at a given GVT. More...
 
void fossil_lp_collect (struct lp_ctx *lp)
 Perform fossil collection for the data structures of a certain LP. More...
 

Variables

__thread unsigned fossil_epoch_current
 The current fossil collection epoch.
 

Detailed Description

Housekeeping operations.

In this module all the housekeeping operations related to GVT computation phase are present.

Macro Definition Documentation

◆ fossil_is_needed

#define fossil_is_needed (   lp)    ((lp)->fossil_epoch != fossil_epoch_current)

Check whether a LP needs to perform fossil collection.

Parameters
lpthe Logical Process to check
Returns
true if the LP needs to perform fossil collection else false

Function Documentation

◆ fossil_lp_collect()

void fossil_lp_collect ( struct lp_ctx lp)

Perform fossil collection for the data structures of a certain LP.

Parameters
lpThe LP on which to perform fossil collection

◆ fossil_on_gvt()

void fossil_on_gvt ( simtime_t  this_gvt)

Perform fossil collection operations at a given GVT.

Parameters
this_gvtThe value of the freshly computed GVT