SimGrid  3.13
Versatile Simulation of Distributed Systems
smx_private.hpp File Reference

Namespaces

 simgrid
 
 simgrid::simix
 

Functions

static void SIMIX_context_free (smx_context_t context)
 destroy a context More...
 
static void SIMIX_context_stop (smx_context_t context)
 stops the execution of a context More...
 
static void SIMIX_context_suspend (smx_context_t context)
 suspends a context and return the control back to the one which scheduled it More...
 
static void SIMIX_context_runall (void)
 Executes all the processes to run (in parallel if possible). More...
 
static smx_context_t SIMIX_context_self (void)
 returns the current running context More...
 
static smx_process_t SIMIX_context_get_process (smx_context_t context)
 returns the SIMIX process associated to a context More...
 
XBT_PRIVATE ContextFactory * simgrid::simix::thread_factory ()
 
XBT_PRIVATE ContextFactory * simgrid::simix::sysv_factory ()
 
ContextFactory * simgrid::simix::raw_factory ()
 
XBT_PRIVATE ContextFactory * simgrid::simix::boost_factory ()
 
template<class R , class... Args>
simgrid::simix::simcall (e_smx_simcall_t call, Args &&...args)
 

Function Documentation

static void SIMIX_context_free ( smx_context_t  context)
inlinestatic

destroy a context

Parameters
contextthe context to destroy Argument must be stopped first – runs in maestro context
static void SIMIX_context_stop ( smx_context_t  context)
inlinestatic

stops the execution of a context

Parameters
contextto stop
static void SIMIX_context_suspend ( smx_context_t  context)
inlinestatic

suspends a context and return the control back to the one which scheduled it

Parameters
contextthe context to be suspended (it must be the running one)
static void SIMIX_context_runall ( void  )
inlinestatic

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

static smx_context_t SIMIX_context_self ( void  )
inlinestatic

returns the current running context

static smx_process_t SIMIX_context_get_process ( smx_context_t  context)
inlinestatic

returns the SIMIX process associated to a context

Parameters
contextThe context
Returns
The SIMIX process