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
implement Exec::wait_for()
[simgrid.git]
/
src
/
simix
/
popping_bodies.cpp
diff --git
a/src/simix/popping_bodies.cpp
b/src/simix/popping_bodies.cpp
index
40a802f
..
4462018
100644
(file)
--- a/
src/simix/popping_bodies.cpp
+++ b/
src/simix/popping_bodies.cpp
@@
-29,21
+29,21
@@
inline static R simcall(e_smx_simcall_t call, T const&... t)
{
smx_actor_t self = SIMIX_process_self();
simgrid::simix::marshal(&self->simcall, call, t...);
- if (self != simix_global->maestro_
process
) {
- XBT_DEBUG("Yield process '%s' on simcall %s (%d)", self->get_cname(), SIMIX_simcall_name(self->simcall.call),
- (int)self->simcall.call);
+ if (self != simix_global->maestro_) {
+ XBT_DEBUG("Yield process '%s' on simcall %s (%d)", self->get_cname(), SIMIX_simcall_name(self->simcall.call
_
),
+ (int)self->simcall.call
_
);
self->yield();
} else {
self->simcall_handle(0);
}
- return simgrid::simix::unmarshal<R>(self->simcall.result);
+ return simgrid::simix::unmarshal<R>(self->simcall.result
_
);
}
-inline static int simcall_BODY_execution_wait(simgrid::kernel::activity::ExecImpl* execution)
+inline static int simcall_BODY_execution_wait(simgrid::kernel::activity::ExecImpl* execution
, double timeout
)
{
if (0) /* Go to that function to follow the code flow through the simcall barrier */
- simcall_HANDLER_execution_wait(&SIMIX_process_self()->simcall, execution);
- return simcall<int, simgrid::kernel::activity::ExecImpl*
>(SIMCALL_EXECUTION_WAIT, execution
);
+ simcall_HANDLER_execution_wait(&SIMIX_process_self()->simcall, execution
, timeout
);
+ return simcall<int, simgrid::kernel::activity::ExecImpl*
, double>(SIMCALL_EXECUTION_WAIT, execution, timeout
);
}
inline static int simcall_BODY_execution_waitany_for(simgrid::kernel::activity::ExecImpl** execs, size_t count, double timeout)