/************
* Resource *
************/
-Cpu::Cpu(){
+Cpu::Cpu()
+{
}
, m_core(core)
, m_speedPeak(speedPeak)
, m_speedScale(speedScale)
- , p_constraintCore(NULL)
- , p_constraintCoreId(NULL)
{
}
if (core > 1)
xbt_assert(model == surf_cpu_model_pm);
- p_constraintCore = NULL;
- p_constraintCoreId = NULL;
if (model->getUpdateMechanism() != UM_UNDEFINED) {
p_constraintCore = xbt_new(lmm_constraint_t, core);
p_constraintCoreId = xbt_new(void*, core);
double m_speedScale; /*< Percentage of CPU available according to the trace, in [O,1] */
/* Note (hypervisor): */
- lmm_constraint_t *p_constraintCore;
- void **p_constraintCoreId;
+ lmm_constraint_t *p_constraintCore=NULL;
+ void **p_constraintCoreId=NULL;
};
/**********