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
cosmetics: rename some fields and methods in surf::Action
[simgrid.git]
/
src
/
surf
/
storage_n11.cpp
diff --git
a/src/surf/storage_n11.cpp
b/src/surf/storage_n11.cpp
index
130879d
..
9c95154
100644
(file)
--- a/
src/surf/storage_n11.cpp
+++ b/
src/surf/storage_n11.cpp
@@
-143,7
+143,7
@@
int StorageN11Action::unref()
{
refcount_--;
if (not refcount_) {
- if (
action_hook
.is_linked())
+ if (
stateSetHook_
.is_linked())
simgrid::xbt::intrusive_erase(*stateSet_, *this);
if (getVariable())
getModel()->getMaxminSystem()->variable_free(getVariable());
@@
-162,9
+162,9
@@
void StorageN11Action::cancel()
void StorageN11Action::suspend()
{
XBT_IN("(%p)", this);
- if (suspended_ !=
2
) {
+ if (suspended_ !=
Action::SuspendStates::sleeping
) {
getModel()->getMaxminSystem()->update_variable_weight(getVariable(), 0.0);
- suspended_ =
1
;
+ suspended_ =
Action::SuspendStates::suspended
;
}
XBT_OUT();
}
@@
-176,7
+176,7
@@
void StorageN11Action::resume()
bool StorageN11Action::isSuspended()
{
- return suspended_ ==
1
;
+ return suspended_ ==
Action::SuspendStates::suspended
;
}
void StorageN11Action::setMaxDuration(double /*duration*/)