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
inline a function called only once
[simgrid.git]
/
src
/
simix
/
libsmx.cpp
diff --git
a/src/simix/libsmx.cpp
b/src/simix/libsmx.cpp
index
4c4bf39
..
a9ad2c9
100644
(file)
--- a/
src/simix/libsmx.cpp
+++ b/
src/simix/libsmx.cpp
@@
-17,6
+17,7
@@
#include <xbt/functional.hpp>
#include <xbt/functional.hpp>
+#include <simgrid/s4u/VirtualMachine.hpp>
#include <simgrid/simix/blocking_simcall.hpp>
#include "mc/mc.h"
#include <simgrid/simix/blocking_simcall.hpp>
#include "mc/mc.h"
@@
-180,20
+181,19
@@
e_smx_state_t simcall_execution_wait(smx_activity_t execution)
return (e_smx_state_t) simcall_BODY_execution_wait(execution);
}
return (e_smx_state_t) simcall_BODY_execution_wait(execution);
}
-
/**
* \ingroup simix_vm_management
* \brief Create a VM on the given physical host.
*
* \param name VM name
/**
* \ingroup simix_vm_management
* \brief Create a VM on the given physical host.
*
* \param name VM name
- * \param
host Physical host
+ * \param
dest Physical host on which to create the VM
*
* \return The host object of the VM
*/
*
* \return The host object of the VM
*/
-sg_host_t simcall_vm_create(const char
*name, sg_host_t phys_ho
st)
+sg_host_t simcall_vm_create(const char
* name, sg_host_t de
st)
{
{
- return simgrid::simix::kernelImmediate([&name, &
phys_ho
st] {
- sg_host_t host =
surf_vm_model->createVM(name, phys_ho
st);
+ return simgrid::simix::kernelImmediate([&name, &
de
st] {
+ sg_host_t host =
new simgrid::s4u::VirtualMachine(name, de
st);
host->extension_set<simgrid::simix::Host>(new simgrid::simix::Host());
return host;
host->extension_set<simgrid::simix::Host>(new simgrid::simix::Host());
return host;