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
Cosmetics and snake_casing in Action and Model
[simgrid.git]
/
src
/
kernel
/
resource
/
Model.cpp
diff --git
a/src/kernel/resource/Model.cpp
b/src/kernel/resource/Model.cpp
index
ee43169
..
3eb402d
100644
(file)
--- a/
src/kernel/resource/Model.cpp
+++ b/
src/kernel/resource/Model.cpp
@@
-27,7
+27,7
@@
Action* Model::actionHeapPop()
{
Action* action = action_heap_.top().second;
action_heap_.pop();
- action->
clearHeapH
andle();
+ action->
heap_clear_h
andle();
return action;
}
@@
-62,7
+62,7
@@
double Model::next_occuring_event_lazy(double now)
continue;
/* bogus priority, skip it */
- if (action->get_priority() <= 0 || action->get_type() == Action::Type::
LATENCY
)
+ if (action->get_priority() <= 0 || action->get_type() == Action::Type::
latency
)
continue;
action->update_remains_lazy(now);
@@
-93,7
+93,7
@@
double Model::next_occuring_event_lazy(double now)
action->get_start_time(), min, share, action->get_max_duration());
if (min > -1) {
- action->heapUpdate(min, max_duration_flag ? Action::Type::
MAX_DURATION : Action::Type::NORMAL
);
+ action->heapUpdate(min, max_duration_flag ? Action::Type::
max_duration : Action::Type::normal
);
XBT_DEBUG("Insert at heap action(%p) min %f now %f", action, min, now);
} else
DIE_IMPOSSIBLE;