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
smpi_bench: define SampleLocation inheriting from std::string.
[simgrid.git]
/
src
/
surf
/
cpu_interface.cpp
diff --git
a/src/surf/cpu_interface.cpp
b/src/surf/cpu_interface.cpp
index
7e992a6
..
e8282cb
100644
(file)
--- a/
src/surf/cpu_interface.cpp
+++ b/
src/surf/cpu_interface.cpp
@@
-110,7
+110,7
@@
Cpu::Cpu(Model* model, simgrid::s4u::Host* host, lmm_constraint_t constraint, st
xbt_assert(speed_.scale > 0, "Speed of host %s must be >0", host->getCname());
// Copy the power peak array:
xbt_assert(speed_.scale > 0, "Speed of host %s must be >0", host->getCname());
// Copy the power peak array:
- for (double value : *speedPerPstate) {
+ for (double
const&
value : *speedPerPstate) {
speedPerPstate_.push_back(value);
}
}
speedPerPstate_.push_back(value);
}
}
@@
-211,15
+211,15
@@
void CpuAction::updateRemainingLazy(double now)
simgrid::xbt::signal<void(simgrid::surf::CpuAction*, Action::State)> CpuAction::onStateChange;
void CpuAction::suspend(){
simgrid::xbt::signal<void(simgrid::surf::CpuAction*, Action::State)> CpuAction::onStateChange;
void CpuAction::suspend(){
-
Action::State previous = getState();
-
onStateChange(this, previous);
-
Action::suspend();
+ Action::State previous = getState();
+ onStateChange(this, previous);
+ Action::suspend();
}
void CpuAction::resume(){
}
void CpuAction::resume(){
-
Action::State previous = getState();
-
onStateChange(this, previous);
-
Action::resume();
+ Action::State previous = getState();
+ onStateChange(this, previous);
+ Action::resume();
}
void CpuAction::setState(Action::State state){
}
void CpuAction::setState(Action::State state){