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
VM: code simplification by ensuring that the piface field is set
[simgrid.git]
/
src
/
simix
/
libsmx.cpp
diff --git
a/src/simix/libsmx.cpp
b/src/simix/libsmx.cpp
index
91447fe
..
f31aa0e
100644
(file)
--- a/
src/simix/libsmx.cpp
+++ b/
src/simix/libsmx.cpp
@@
-194,8
+194,7
@@
e_smx_state_t simcall_execution_wait(smx_activity_t execution)
sg_host_t simcall_vm_create(const char *name, sg_host_t phys_host)
{
return simgrid::simix::kernelImmediate([&] {
sg_host_t simcall_vm_create(const char *name, sg_host_t phys_host)
{
return simgrid::simix::kernelImmediate([&] {
- surf_vm_model->createVM(name, phys_host);
- sg_host_t host = sg_host_by_name(name);
+ sg_host_t host = surf_vm_model->createVM(name, phys_host);
SIMIX_host_create(host);
return host;
SIMIX_host_create(host);
return host;