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
do not include msg from s4u and surf
[simgrid.git]
/
src
/
s4u
/
s4u_activity.cpp
diff --git
a/src/s4u/s4u_activity.cpp
b/src/s4u/s4u_activity.cpp
index
bc04431
..
d2cc31b
100644
(file)
--- a/
src/s4u/s4u_activity.cpp
+++ b/
src/s4u/s4u_activity.cpp
@@
-20,9
+20,11
@@
double Activity::getRemains()
return remains_;
}
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;
}
}
}
}