Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add sg_exec_set_host
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 5 Mar 2020 09:01:48 +0000 (10:01 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 5 Mar 2020 09:01:48 +0000 (10:01 +0100)
include/simgrid/exec.h
src/s4u/s4u_Exec.cpp

index 95d5ff2..6403afc 100644 (file)
@@ -13,6 +13,7 @@
 SG_BEGIN_DECL
 
 XBT_PUBLIC void sg_exec_set_bound(sg_exec_t exec, double bound);
+XBT_PUBLIC void sg_exec_set_host(sg_exec_t exec, sg_host_t new_host);
 XBT_PUBLIC double sg_exec_get_remaining(const_sg_exec_t exec);
 
 XBT_PUBLIC void sg_exec_start(sg_exec_t exec);
index 7048f1b..966fa79 100644 (file)
@@ -217,6 +217,11 @@ void sg_exec_set_bound(sg_exec_t exec, double bound)
   exec->set_bound(bound);
 }
 
+void sg_exec_set_host(sg_exec_t exec, sg_host_t new_host)
+{
+  exec->set_host(new_host);
+}
+
 double sg_exec_get_remaining(const_sg_exec_t exec)
 {
   return exec->get_remaining();