A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
try to initialize the class on demand
[simgrid.git]
/
src
/
surf
/
HostImpl.cpp
diff --git
a/src/surf/HostImpl.cpp
b/src/surf/HostImpl.cpp
index
66c97a6
..
4058887
100644
(file)
--- a/
src/surf/HostImpl.cpp
+++ b/
src/surf/HostImpl.cpp
@@
-119,9
+119,6
@@
Action *HostModel::executeParallelTask(int host_nb,
void HostImpl::classInit()
{
void HostImpl::classInit()
{
- if (!EXTENSION_ID.valid()) {
- EXTENSION_ID = simgrid::s4u::Host::extension_create<simgrid::surf::HostImpl>();
- }
}
HostImpl::HostImpl(simgrid::surf::HostModel *model, const char *name, xbt_dynar_t storage, Cpu *cpu)
}
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)
{
, PropertyHolder(nullptr)
, p_storage(storage), p_cpu(cpu)
{
+ if (!EXTENSION_ID.valid())
+ EXTENSION_ID = simgrid::s4u::Host::extension_create<simgrid::surf::HostImpl>();
p_params.ramsize = 0;
}
p_params.ramsize = 0;
}