SimGrid  3.16
Versatile Simulation of Distributed Systems
ContextRaw.cpp File Reference
#include "src/internal_config.h"
#include "xbt/parmap.h"
#include "src/simix/smx_private.h"
#include "mc/mc.h"

Classes

class  simgrid::kernel::context::RawContext
 Fast context switching inspired from SystemV ucontexts. More...
 
class  simgrid::kernel::context::RawContextFactory
 

Namespaces

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

Typedefs

typedef void(* rawctx_entry_point_t) (void *)
 
typedef voidraw_stack_t
 

Functions

 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY (simix_context)
 
ContextFactory * simgrid::kernel::context::raw_factory ()
 
raw_stack_t raw_makecontext (void *malloced_stack, int stack_size, rawctx_entry_point_t entry_point, void *arg)
 
void raw_swapcontext (raw_stack_t *old, raw_stack_t new_context)
 

Variables

static unsigned long raw_process_index = 0
 
static simgrid::kernel::context::RawContextraw_maestro_context
 
static bool raw_context_parallel = false
 

Typedef Documentation

◆ rawctx_entry_point_t

typedef void(* rawctx_entry_point_t) (void *)

◆ raw_stack_t

typedef void* raw_stack_t

Function Documentation

◆ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY()

XBT_LOG_EXTERNAL_DEFAULT_CATEGORY ( simix_context  )

◆ raw_makecontext()

raw_stack_t raw_makecontext ( void malloced_stack,
int  stack_size,
rawctx_entry_point_t  entry_point,
void arg 
)

◆ raw_swapcontext()

void raw_swapcontext ( raw_stack_t old,
raw_stack_t  new_context 
)

Variable Documentation

◆ raw_process_index

unsigned long raw_process_index = 0
static

◆ raw_maestro_context

simgrid::kernel::context::RawContext* raw_maestro_context
static

◆ raw_context_parallel

bool raw_context_parallel = false
static