X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/706a0c36671aa5ab7afe12afe987cc1c72f049ac..583a10d8a63c6c037d2116f15dbbd3c2b035806e:/src/kernel/activity/ExecImpl.cpp diff --git a/src/kernel/activity/ExecImpl.cpp b/src/kernel/activity/ExecImpl.cpp index 0969448e0c..beeed7efee 100644 --- a/src/kernel/activity/ExecImpl.cpp +++ b/src/kernel/activity/ExecImpl.cpp @@ -35,12 +35,12 @@ void simcall_HANDLER_execution_wait(smx_simcall_t simcall, smx_activity_t synchr boost::static_pointer_cast(synchro)->finish(); } -void simcall_HANDLER_execution_test(smx_simcall_t simcall, smx_activity_t synchro) +void simcall_HANDLER_execution_test(smx_simcall_t simcall, simgrid::kernel::activity::ExecImpl* synchro) { int res = (synchro->state_ != SIMIX_WAITING && synchro->state_ != SIMIX_RUNNING); if (res) { synchro->simcalls_.push_back(simcall); - boost::static_pointer_cast(synchro)->finish(); + synchro->finish(); } else { SIMIX_simcall_answer(simcall); }