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
use a typed extension for simix::Host
[simgrid.git]
/
src
/
s4u
/
s4u_host.cpp
diff --git
a/src/s4u/s4u_host.cpp
b/src/s4u/s4u_host.cpp
index
0d3cad4
..
a75aea9
100644
(file)
--- a/
src/s4u/s4u_host.cpp
+++ b/
src/s4u/s4u_host.cpp
@@
-21,7
+21,6
@@
#include "simgrid/s4u/storage.hpp"
int MSG_HOST_LEVEL = -1;
#include "simgrid/s4u/storage.hpp"
int MSG_HOST_LEVEL = -1;
-int SIMIX_HOST_LEVEL = -1;
int USER_HOST_LEVEL = -1;
namespace simgrid {
int USER_HOST_LEVEL = -1;
namespace simgrid {
@@
-133,7
+132,7
@@
void Host::setProperty(const char*key, const char *value){
xbt_swag_t Host::processes()
{
return simgrid::simix::kernelImmediate([&]() {
xbt_swag_t Host::processes()
{
return simgrid::simix::kernelImmediate([&]() {
- return
((smx_host_priv_t)this->extension(SIMIX_HOST_LEVEL)
)->process_list;
+ return
this->extension<simgrid::simix::Host>(
)->process_list;
});
}
});
}