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 and use method chaining for ExecImpl
[simgrid.git]
/
src
/
kernel
/
activity
/
ExecImpl.cpp
diff --git
a/src/kernel/activity/ExecImpl.cpp
b/src/kernel/activity/ExecImpl.cpp
index
83f36e8
..
5da186d
100644
(file)
--- a/
src/kernel/activity/ExecImpl.cpp
+++ b/
src/kernel/activity/ExecImpl.cpp
@@
-39,7
+39,7
@@
ExecImpl::~ExecImpl()
XBT_DEBUG("Destroy exec %p", this);
}
XBT_DEBUG("Destroy exec %p", this);
}
-
void
ExecImpl::start(double flops_amount, double priority, double bound)
+
ExecImpl*
ExecImpl::start(double flops_amount, double priority, double bound)
{
if (not MC_is_active() && not MC_record_replay_is_active()) {
surf_action_ = host_->pimpl_cpu->execution_start(flops_amount);
{
if (not MC_is_active() && not MC_record_replay_is_active()) {
surf_action_ = host_->pimpl_cpu->execution_start(flops_amount);
@@
-51,6
+51,7
@@
void ExecImpl::start(double flops_amount, double priority, double bound)
XBT_DEBUG("Create execute synchro %p: %s", this, name_.c_str());
ExecImpl::on_creation(this);
XBT_DEBUG("Create execute synchro %p: %s", this, name_.c_str());
ExecImpl::on_creation(this);
+ return this;
}
void ExecImpl::cancel()
}
void ExecImpl::cancel()