boost::static_pointer_cast<simgrid::kernel::activity::ExecImpl>(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<simgrid::kernel::activity::ExecImpl>(synchro)->finish();
+ synchro->finish();
} else {
SIMIX_simcall_answer(simcall);
}