A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Host::execute to use *this as a host location, not the this_actor->get_host()
[simgrid.git]
/
src
/
s4u
/
s4u_Host.cpp
diff --git
a/src/s4u/s4u_Host.cpp
b/src/s4u/s4u_Host.cpp
index
62b4b12
..
670882c
100644
(file)
--- a/
src/s4u/s4u_Host.cpp
+++ b/
src/s4u/s4u_Host.cpp
@@
-420,7
+420,7
@@
void Host::execute(double flops) const
void Host::execute(double flops, double priority) const
{
void Host::execute(double flops, double priority) const
{
-
this_actor::exec_init(flops)->set_priority(1 / priority)->start(
)->wait();
+
Exec::init()->set_flops_amount(flops)->set_host(const_cast<Host*>(this))->set_priority(1 / priority
)->wait();
}
Host* Host::seal()
}
Host* Host::seal()