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
small simplifications around simcalls
[simgrid.git]
/
src
/
kernel
/
activity
/
SleepImpl.cpp
diff --git
a/src/kernel/activity/SleepImpl.cpp
b/src/kernel/activity/SleepImpl.cpp
index
f80692b
..
e20cdf7
100644
(file)
--- a/
src/kernel/activity/SleepImpl.cpp
+++ b/
src/kernel/activity/SleepImpl.cpp
@@
-48,6
+48,7
@@
void SleepImpl::post()
} else if (surf_action_->get_state() == resource::Action::State::FINISHED) {
state_ = SIMIX_DONE;
}
} else if (surf_action_->get_state() == resource::Action::State::FINISHED) {
state_ = SIMIX_DONE;
}
+ /* Answer all simcalls associated with the synchro */
finish();
}
finish();
}
@@
-57,13
+58,13
@@
void SleepImpl::finish()
smx_simcall_t simcall = simcalls_.front();
simcalls_.pop_front();
smx_simcall_t simcall = simcalls_.front();
simcalls_.pop_front();
- simcall->issuer->waiting_synchro = nullptr;
- if (simcall->issuer->is_suspended()) {
+ simcall->issuer
_
->waiting_synchro = nullptr;
+ if (simcall->issuer
_
->is_suspended()) {
XBT_DEBUG("Wait! This process is suspended and can't wake up now.");
XBT_DEBUG("Wait! This process is suspended and can't wake up now.");
- simcall->issuer->suspended_ = false;
- simcall->issuer
->suspend(simcall->issuer
);
+ simcall->issuer
_
->suspended_ = false;
+ simcall->issuer
_->suspend(simcall->issuer_
);
} else {
} else {
- simcall->issuer->simcall_answer();
+ simcall->issuer
_
->simcall_answer();
}
}
}
}