static XBT_INLINE void surf_cpu_free(void *r)
{
- delete static_cast<CpuPtr>(r);
+ delete dynamic_cast<CpuPtr>(static_cast<ResourcePtr>(r));
}
static XBT_INLINE void surf_link_free(void *r)
static XBT_INLINE void surf_workstation_free(void *r)
{
- delete static_cast<WorkstationCLM03Ptr>(r);
+ delete dynamic_cast<WorkstationCLM03Ptr>(static_cast<ResourcePtr>(r));
}
{
//FIXME: set the good function once and for all
if (p_updateMechanism == UM_LAZY)
- shareResourcesLazy(now);
+ return shareResourcesLazy(now);
else if (p_updateMechanism == UM_FULL)
- shareResourcesFull(now);
+ return shareResourcesFull(now);
else
xbt_die("Invalid cpu update mechanism!");
}
("After share resources, The size of modified actions set is %d",
xbt_swag_size(p_modifiedSet));
- while((action = (ActionLmmPtr) xbt_swag_extract(p_modifiedSet))) {
+ while((action = static_cast<ActionLmmPtr>(xbt_swag_extract(p_modifiedSet)))) {
int max_dur_flag = 0;
if (action->p_stateSet != p_runningActionSet)
#ifdef HAVE_TRACING
p_category = NULL;
#endif
+ p_stateHookup.prev = 0;
+ p_stateHookup.next = 0;
if (failed)
p_stateSet = p_model->p_failedActionSet;
else