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
push up a method in the surf::Host hierarchy
[simgrid.git]
/
src
/
surf
/
host_interface.cpp
diff --git
a/src/surf/host_interface.cpp
b/src/surf/host_interface.cpp
index
85dc8b7
..
38676b8
100644
(file)
--- a/
src/surf/host_interface.cpp
+++ b/
src/surf/host_interface.cpp
@@
-136,6
+136,9
@@
void Host::attach(simgrid::Host* host)
onCreation(this);
}
+e_surf_resource_state_t Host::getState() {
+ return p_cpu->getState();
+}
void Host::setState(e_surf_resource_state_t state){
e_surf_resource_state_t old = Resource::getState();
Resource::setState(state);