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 field private.
[simgrid.git]
/
src
/
surf
/
plugins
/
host_load.cpp
diff --git
a/src/surf/plugins/host_load.cpp
b/src/surf/plugins/host_load.cpp
index
99e7a39
..
eb057d1
100644
(file)
--- a/
src/surf/plugins/host_load.cpp
+++ b/
src/surf/plugins/host_load.cpp
@@
-125,7
+125,7
@@
static void onHostChange(simgrid::s4u::Host& host)
}
/* This callback is called when an action (computation, idle, ...) terminates */
}
/* This callback is called when an action (computation, idle, ...) terminates */
-static void onActionStateChange(simgrid::surf::CpuAction* action, simgrid::surf::Action::State
previous
)
+static void onActionStateChange(simgrid::surf::CpuAction* action, simgrid::surf::Action::State
/*previous*/
)
{
for (simgrid::surf::Cpu* const& cpu : action->cpus()) {
simgrid::s4u::Host* host = cpu->getHost();
{
for (simgrid::surf::Cpu* const& cpu : action->cpus()) {
simgrid::s4u::Host* host = cpu->getHost();
@@
-139,7
+139,7
@@
static void onActionStateChange(simgrid::surf::CpuAction* action, simgrid::surf:
}
/* **************************** Public interface *************************** */
}
/* **************************** Public interface *************************** */
-SG_BEGIN_DECL()
+extern "C" {
/** \ingroup plugin_load
* \brief Initializes the HostLoad plugin
/** \ingroup plugin_load
* \brief Initializes the HostLoad plugin
@@
-185,5
+185,4
@@
void sg_host_load_reset(sg_host_t host)
host->extension<HostLoad>()->reset();
}
host->extension<HostLoad>()->reset();
}
-
-SG_END_DECL()
+}