SimGrid  3.16
Versatile Simulation of Distributed Systems
smx_host_private.h File Reference
#include <vector>
#include <functional>
#include <xbt/base.h>
#include <xbt/Extendable.hpp>
#include "simgrid/simix.h"
#include "popping_private.h"
#include "src/kernel/activity/ExecImpl.hpp"

Classes

class  simgrid::simix::Host
 

Namespaces

 simgrid
 Alltoall Bruck.
 
 simgrid::simix
 

Functions

void SIMIX_host_add_auto_restart_process (sg_host_t host, const char *name, std::function< void()> code, void *data, double kill_time, xbt_dict_t properties, int auto_restart)
 Add a process to the list of the processes that the host will restart when it comes back This function add a process to the list of the processes that will be restarted when the host comes back. More...
 
void SIMIX_host_autorestart (sg_host_t host)
 Restart the list of processes that have been registered to the host. More...
 
void SIMIX_execution_cancel (smx_activity_t synchro)
 
void SIMIX_execution_set_priority (smx_activity_t synchro, double priority)
 
void SIMIX_execution_set_bound (smx_activity_t synchro, double bound)
 
void SIMIX_execution_finish (simgrid::kernel::activity::ExecImplPtr exec)
 
void SIMIX_set_category (smx_activity_t synchro, const char *category)
 
smx_activity_t SIMIX_execution_start (smx_actor_t issuer, const char *name, double flops_amount, double priority, double bound)
 
smx_activity_t SIMIX_execution_parallel_start (const char *name, int host_nb, sg_host_t *host_list, double *flops_amount, double *bytes_amount, double amount, double rate, double timeout)
 

Function Documentation

◆ SIMIX_host_add_auto_restart_process()

void SIMIX_host_add_auto_restart_process ( sg_host_t  host,
const char *  name,
std::function< void()>  code,
void data,
double  kill_time,
xbt_dict_t  properties,
int  auto_restart 
)

Add a process to the list of the processes that the host will restart when it comes back This function add a process to the list of the processes that will be restarted when the host comes back.

It is expected that this function is called when the host is down. The processes will only be restarted once, meaning that you will have to register the process again to restart the process again.

◆ SIMIX_host_autorestart()

void SIMIX_host_autorestart ( sg_host_t  host)

Restart the list of processes that have been registered to the host.

◆ SIMIX_execution_cancel()

void SIMIX_execution_cancel ( smx_activity_t  synchro)

◆ SIMIX_execution_set_priority()

void SIMIX_execution_set_priority ( smx_activity_t  synchro,
double  priority 
)

◆ SIMIX_execution_set_bound()

void SIMIX_execution_set_bound ( smx_activity_t  synchro,
double  bound 
)

◆ SIMIX_execution_finish()

void SIMIX_execution_finish ( simgrid::kernel::activity::ExecImplPtr  exec)

◆ SIMIX_set_category()

void SIMIX_set_category ( smx_activity_t  synchro,
const char *  category 
)

◆ SIMIX_execution_start()

smx_activity_t SIMIX_execution_start ( smx_actor_t  issuer,
const char *  name,
double  flops_amount,
double  priority,
double  bound 
)

◆ SIMIX_execution_parallel_start()

smx_activity_t SIMIX_execution_parallel_start ( const char *  name,
int  host_nb,
sg_host_t host_list,
double *  flops_amount,
double *  bytes_amount,
double  amount,
double  rate,
double  timeout 
)