SimGrid  3.16
Versatile Simulation of Distributed Systems
Context.cpp File Reference
#include "mc/mc.h"
#include "src/kernel/context/Context.hpp"
#include "src/simix/smx_private.h"

Namespaces

 simgrid
 Alltoall Bruck.
 
 simgrid::kernel
 
 simgrid::kernel::context
 

Functions

smx_context_t SIMIX_context_new (std::function< void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t simix_process)
 creates a new context for a user level process More...
 
void SIMIX_context_runall ()
 Executes all the processes to run (in parallel if possible). More...
 
smx_context_t SIMIX_context_self ()
 returns the current running context More...
 

Variables

ContextFactoryInitializer simgrid::kernel::context::factory_initializer = nullptr
 

Function Documentation

◆ SIMIX_context_new()

smx_context_t SIMIX_context_new ( std::function< void()>  code,
void_pfn_smxprocess_t  cleanup_func,
smx_actor_t  simix_process 
)

creates a new context for a user level process

Parameters
codea main function
cleanup_functhe function to call when the context stops

◆ SIMIX_context_runall()

void SIMIX_context_runall ( )

Executes all the processes to run (in parallel if possible).

◆ SIMIX_context_self()

smx_context_t SIMIX_context_self ( )

returns the current running context