X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f93995a3b219ca9ec5dc7ec2608b05836d0d537f..171db3edf1ae6771343edd2b2cc95e2f31e98afe:/src/surf/HostImpl.cpp diff --git a/src/surf/HostImpl.cpp b/src/surf/HostImpl.cpp index 66c97a69b6..4058887d5a 100644 --- a/src/surf/HostImpl.cpp +++ b/src/surf/HostImpl.cpp @@ -119,9 +119,6 @@ Action *HostModel::executeParallelTask(int host_nb, void HostImpl::classInit() { - if (!EXTENSION_ID.valid()) { - EXTENSION_ID = simgrid::s4u::Host::extension_create(); - } } HostImpl::HostImpl(simgrid::surf::HostModel *model, const char *name, xbt_dynar_t storage, Cpu *cpu) @@ -129,6 +126,8 @@ HostImpl::HostImpl(simgrid::surf::HostModel *model, const char *name, xbt_dynar_ , PropertyHolder(nullptr) , p_storage(storage), p_cpu(cpu) { + if (!EXTENSION_ID.valid()) + EXTENSION_ID = simgrid::s4u::Host::extension_create(); p_params.ramsize = 0; }