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
MC: be more cautionous around MC_process_clock, the actor may not be there in case...
[simgrid.git]
/
src
/
mc
/
mc_global.cpp
diff --git
a/src/mc/mc_global.cpp
b/src/mc/mc_global.cpp
index
e733950
..
24631fe
100644
(file)
--- a/
src/mc/mc_global.cpp
+++ b/
src/mc/mc_global.cpp
@@
-96,12
+96,12
@@
double MC_process_clock_get(const simgrid::kernel::actor::ActorImpl* process)
{
if (simgrid::mc::processes_time.empty())
return 0;
- if (process
!
= nullptr)
- return
simgrid::mc::processes_time[process->get_pid()]
;
- return
-1
;
+ if (process
=
= nullptr)
+ return
-1
;
+ return
simgrid::mc::processes_time.at(process->get_pid())
;
}
void MC_process_clock_add(const simgrid::kernel::actor::ActorImpl* process, double amount)
{
- simgrid::mc::processes_time
[process->get_pid()]
+= amount;
+ simgrid::mc::processes_time
.at(process->get_pid())
+= amount;
}