CpuTiModel::CpuTiModel() : CpuModel("cpu_ti")
{
xbt_assert(!surf_cpu_model_pm,"CPU model already initialized. This should not happen.");
- ActionPtr action;
+ ActionPtr action = NULL;
CpuTi cpu;
cpu_ti_running_action_set_that_does_not_need_being_checked =
return (CpuTiPtr) xbt_lib_get_elm_or_null(host_lib, name);
}
-CpuTiActionPtr CpuTiModel::createAction(double cost, bool failed)
+CpuTiActionPtr CpuTiModel::createAction(double /*cost*/, bool /*failed*/)
{
return NULL;//new CpuTiAction(this, cost, failed);
}
return min_action_duration;
}
-void CpuTiModel::updateActionsState(double now, double delta)
+void CpuTiModel::updateActionsState(double now, double /*delta*/)
{
while ((xbt_heap_size(cpu_ti_action_heap) > 0)
&& (xbt_heap_maxkey(cpu_ti_action_heap) <= now)) {
XBT_DEBUG("power scale %lf", powerScale);
p_availTrace = new CpuTiTgmr(powerTrace, powerScale);
- CpuTiActionPtr action;
+ CpuTiActionPtr action = NULL;
p_actionSet = xbt_swag_new(xbt_swag_offset(*action, p_cpuListHookup));
xbt_dynar_get_cpy(powerPeak, 0, &m_powerPeak);
return m_remains;
}
-static void check() {
- CpuTiActionPtr cupAction = new CpuTiAction(NULL, 0, true);
-}
-
#endif /* SURF_MODEL_CPUTI_H_ */