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
snake_case some resource::Action fields and cleanups
[simgrid.git]
/
src
/
surf
/
cpu_interface.cpp
diff --git
a/src/surf/cpu_interface.cpp
b/src/surf/cpu_interface.cpp
index
a223b68
..
d5ffeef
100644
(file)
--- a/
src/surf/cpu_interface.cpp
+++ b/
src/surf/cpu_interface.cpp
@@
-200,20
+200,21
@@
void CpuAction::updateRemainingLazy(double now)
simgrid::xbt::signal<void(simgrid::surf::CpuAction*, kernel::resource::Action::State)> CpuAction::onStateChange;
void CpuAction::suspend(){
simgrid::xbt::signal<void(simgrid::surf::CpuAction*, kernel::resource::Action::State)> CpuAction::onStateChange;
void CpuAction::suspend(){
- Action::State previous = get
S
tate();
+ Action::State previous = get
_s
tate();
onStateChange(this, previous);
Action::suspend();
}
void CpuAction::resume(){
onStateChange(this, previous);
Action::suspend();
}
void CpuAction::resume(){
- Action::State previous = get
S
tate();
+ Action::State previous = get
_s
tate();
onStateChange(this, previous);
Action::resume();
}
onStateChange(this, previous);
Action::resume();
}
-void CpuAction::setState(Action::State state){
- Action::State previous = getState();
- Action::setState(state);
+void CpuAction::set_state(Action::State state)
+{
+ Action::State previous = get_state();
+ Action::set_state(state);
onStateChange(this, previous);
}
/** @brief returns a list of all CPUs that this action is using */
onStateChange(this, previous);
}
/** @brief returns a list of all CPUs that this action is using */