From f41c1507eed2335359077804d9f85f6f223f8826 Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Thu, 5 Mar 2020 10:01:48 +0100 Subject: [PATCH] add sg_exec_set_host --- include/simgrid/exec.h | 1 + src/s4u/s4u_Exec.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/include/simgrid/exec.h b/include/simgrid/exec.h index 95d5ff24f9..6403afc399 100644 --- a/include/simgrid/exec.h +++ b/include/simgrid/exec.h @@ -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); diff --git a/src/s4u/s4u_Exec.cpp b/src/s4u/s4u_Exec.cpp index 7048f1bea5..966fa79bcd 100644 --- a/src/s4u/s4u_Exec.cpp +++ b/src/s4u/s4u_Exec.cpp @@ -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(); -- 2.20.1