SimGrid
3.14.159
Versatile Simulation of Distributed Systems
|
#include <vector>
#include <functional>
#include <xbt/base.h>
#include <xbt/Extendable.hpp>
#include "simgrid/simix.h"
#include "popping_private.h"
#include "src/kernel/activity/SynchroExec.hpp"
Classes | |
class | simgrid::simix::Host |
Namespaces | |
simgrid | |
Host datatype from SIMIX POV. | |
simgrid::simix | |
Typedefs | |
typedef simgrid::simix::Host | s_smx_host_priv_t |
Functions | |
void | _SIMIX_host_free_process_arg (void *) |
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... | |
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) |
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::Exec *exec) |
void | SIMIX_set_category (smx_activity_t synchro, const char *category) |
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.
Restart the list of processes that have been registered to the host.
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 | ||
) |
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::Exec * | exec | ) |
void SIMIX_set_category | ( | smx_activity_t | synchro, |
const char * | category | ||
) |