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
allow to call s4u::Exec->setHost() after its start, to migrate it
[simgrid.git]
/
src
/
s4u
/
s4u_activity.cpp
diff --git
a/src/s4u/s4u_activity.cpp
b/src/s4u/s4u_activity.cpp
index
4e8caaa
..
d2cc31b
100644
(file)
--- a/
src/s4u/s4u_activity.cpp
+++ b/
src/s4u/s4u_activity.cpp
@@
-15,16
+15,16
@@
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(s4u_activity,s4u,"S4U activities");
namespace simgrid {
namespace s4u {
namespace simgrid {
namespace s4u {
-Activity::Activity() {
-
-}
-Activity::~Activity() {
-
+double Activity::getRemains()
+{
+ return remains_;
}
}
-void Activity::setRemains(double remains) {
+Activity* Activity::setRemains(double remains)
+{
xbt_assert(state_ == inited, "Cannot change the remaining amount of work once the Activity is started");
remains_ = remains;
xbt_assert(state_ == inited, "Cannot change the remaining amount of work once the Activity is started");
remains_ = remains;
+ return this;
}
}
}
}