: m_name(xbt_strdup(name)), m_properties(props), p_model(model), m_running(true)
{}
-Resource::Resource(){
- //FIXME:free(m_name);
- //FIXME:xbt_dict_free(&m_properties);
-}
+Resource::Resource()
+: m_name(NULL), m_properties(NULL), p_model(NULL)
+{}
const char *Resource::getName()
{
p_power.peak = metric_peak;
if (metric_trace)
p_power.event = tmgr_history_add_trace(history, metric_trace, 0.0, 0, static_cast<ResourcePtr>(this));
+ else
+ p_power.event = NULL;
}
/**********
m_maxDuration(NO_MAX_DURATION),
m_cost(cost),
p_model(model),
- m_refcount(1)
+ m_refcount(1),
+ p_data(NULL)
{
#ifdef HAVE_TRACING
p_category = NULL;