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
make e_surf_vm_state_t an enum class
[simgrid.git]
/
src
/
plugins
/
vm
/
s4u_VirtualMachine.cpp
diff --git
a/src/plugins/vm/s4u_VirtualMachine.cpp
b/src/plugins/vm/s4u_VirtualMachine.cpp
index
a3c9efd
..
a393f46
100644
(file)
--- a/
src/plugins/vm/s4u_VirtualMachine.cpp
+++ b/
src/plugins/vm/s4u_VirtualMachine.cpp
@@
-95,7
+95,7
@@
void VirtualMachine::start()
}
}
}
}
- this->pimpl_vm_->set_state(
SURF_VM_STATE_
RUNNING);
+ this->pimpl_vm_->set_state(
VirtualMachine::state::
RUNNING);
});
on_started(*this);
});
on_started(*this);
@@
-140,7
+140,7
@@
void VirtualMachine::set_pm(simgrid::s4u::Host* pm)
simgrid::simix::simcall([this, pm]() { pimpl_vm_->set_physical_host(pm); });
}
simgrid::simix::simcall([this, pm]() { pimpl_vm_->set_physical_host(pm); });
}
-
e_surf_vm_state_t
VirtualMachine::getState()
+
VirtualMachine::state
VirtualMachine::getState()
{
return simgrid::simix::simcall([this]() { return pimpl_vm_->get_state(); });
}
{
return simgrid::simix::simcall([this]() { return pimpl_vm_->get_state(); });
}
@@
-237,19
+237,19
@@
void sg_vm_set_bound(sg_vm_t vm, double bound)
/** @brief Returns whether the given VM has just created, not running. */
int sg_vm_is_created(sg_vm_t vm)
{
/** @brief Returns whether the given VM has just created, not running. */
int sg_vm_is_created(sg_vm_t vm)
{
- return vm->getState() ==
SURF_VM_STATE_
CREATED;
+ return vm->getState() ==
simgrid::s4u::VirtualMachine::state::
CREATED;
}
/** @brief Returns whether the given VM is currently running */
int sg_vm_is_running(sg_vm_t vm)
{
}
/** @brief Returns whether the given VM is currently running */
int sg_vm_is_running(sg_vm_t vm)
{
- return vm->getState() ==
SURF_VM_STATE_
RUNNING;
+ return vm->getState() ==
simgrid::s4u::VirtualMachine::state::
RUNNING;
}
/** @brief Returns whether the given VM is currently suspended, not running. */
int sg_vm_is_suspended(sg_vm_t vm)
{
}
/** @brief Returns whether the given VM is currently suspended, not running. */
int sg_vm_is_suspended(sg_vm_t vm)
{
- return vm->getState() ==
SURF_VM_STATE_
SUSPENDED;
+ return vm->getState() ==
simgrid::s4u::VirtualMachine::state::
SUSPENDED;
}
/** @brief Start a vm (i.e., boot the guest operating system)
}
/** @brief Start a vm (i.e., boot the guest operating system)