X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bdaff2753e3c9371e8122ffaf0694581b458d80d..215334a90eeaaccc35c8359cffd9c869cf57ccdc:/src/simix/smx_host.cpp diff --git a/src/simix/smx_host.cpp b/src/simix/smx_host.cpp index 3b1cde9b47..f9bbc488a8 100644 --- a/src/simix/smx_host.cpp +++ b/src/simix/smx_host.cpp @@ -25,7 +25,7 @@ const char* sg_host_self_get_name() } /** - * \brief Add a process to the list of the processes that the host will restart when it comes back + * @brief 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 @@ -61,7 +61,7 @@ void SIMIX_host_autorestart(sg_host_t host) } boost::intrusive_ptr -SIMIX_execution_start(const char* name, double flops_amount, double priority, double bound, sg_host_t host) +SIMIX_execution_start(std::string name, double flops_amount, double priority, double bound, sg_host_t host) { /* set surf's action */ simgrid::kernel::resource::Action* surf_action = nullptr; @@ -76,13 +76,13 @@ SIMIX_execution_start(const char* name, double flops_amount, double priority, do new simgrid::kernel::activity::ExecImpl(name, surf_action, /*timeout_detector*/ nullptr, host)); XBT_DEBUG("Create execute synchro %p: %s", exec.get(), exec->name_.c_str()); - simgrid::kernel::activity::ExecImpl::onCreation(exec); + simgrid::kernel::activity::ExecImpl::on_creation(exec); return exec; } boost::intrusive_ptr -SIMIX_execution_parallel_start(const char* name, int host_nb, sg_host_t* host_list, double* flops_amount, +SIMIX_execution_parallel_start(std::string name, int host_nb, sg_host_t* host_list, double* flops_amount, double* bytes_amount, double rate, double timeout) { @@ -189,7 +189,7 @@ void SIMIX_execution_finish(smx_activity_t synchro) } } -void SIMIX_set_category(smx_activity_t synchro, const char *category) +void SIMIX_set_category(smx_activity_t synchro, std::string category) { if (synchro->state_ != SIMIX_RUNNING) return;