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

Classes

struct  s_smpi_static
 

Typedefs

typedef struct s_smpi_static 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...
 

Typedef Documentation

§ s_smpi_static_t

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.