Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
s/xbt_os_get_numcores()/std::thread::hardware_concurrency()/
[simgrid.git] / src / simix / smx_host.cpp
index 022a54f..9f317fb 100644 (file)
@@ -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<simgrid::kernel::activity::ExecImpl>
-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;
@@ -82,7 +82,7 @@ SIMIX_execution_start(const char* name, double flops_amount, double priority, do
 }
 
 boost::intrusive_ptr<simgrid::kernel::activity::ExecImpl>
-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)
 {