SimGrid  3.18
Versatile Simulation of Distributed Systems
smpi_static_variables.cpp File Reference
#include "private.hpp"
#include <stack>

Classes

struct  s_smpi_static_t
 

Functions

void smpi_register_static (void *arg, void_f_pvoid_t free_fn)
 
void smpi_free_static ()
 

Variables

static std::stack< s_smpi_static_tregistered_static_variables_stack
 Holds a reference to all static variables that were registered via smpi_register_static(). More...
 

Function Documentation

◆ smpi_register_static()

void smpi_register_static ( void arg,
void_f_pvoid_t  free_fn 
)

◆ smpi_free_static()

void smpi_free_static ( )

Variable Documentation

◆ registered_static_variables_stack

std::stack<s_smpi_static_t> registered_static_variables_stack
static

Holds a reference to all static variables that were registered via smpi_register_static().

This helps to free them when SMPI shuts down.