SimGrid  3.13
Versatile Simulation of Distributed Systems
Context.cpp File Reference
#include <cstdint>
#include <memory>
#include <functional>
#include <utility>
#include <simgrid/simix.hpp>
#include "mc/mc.h"
#include <src/simix/smx_private.h>
#include <src/simix/smx_private.hpp>

Namespaces

 simgrid
 
 simgrid::simix
 

Functions

void SIMIX_process_set_cleanup_function (smx_process_t process, void_pfn_smxprocess_t cleanup)
 
smx_context_t SIMIX_context_new (xbt_main_func_t code, int argc, char **argv, void_pfn_smxprocess_t cleanup_func, smx_process_t simix_process)
 creates a new context for a user level process More...
 

Variables

ContextFactoryInitializer simgrid::simix::factory_initializer = nullptr
 

Function Documentation

void SIMIX_process_set_cleanup_function ( smx_process_t  process,
void_pfn_smxprocess_t  cleanup 
)
smx_context_t SIMIX_context_new ( xbt_main_func_t  code,
int  argc,
char **  argv,
void_pfn_smxprocess_t  cleanup_func,
smx_process_t  simix_process 
)

creates a new context for a user level process

Parameters
codea main function
argcthe number of arguments of the main function
argvthe vector of arguments of the main function
cleanup_functhe function to call when the context stops
cleanup_argthe argument of the cleanup_func function