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
Sonar smell.
[simgrid.git]
/
src
/
kernel
/
context
/
ContextUnix.cpp
diff --git
a/src/kernel/context/ContextUnix.cpp
b/src/kernel/context/ContextUnix.cpp
index
7ddae02
..
fd6562f
100644
(file)
--- a/
src/kernel/context/ContextUnix.cpp
+++ b/
src/kernel/context/ContextUnix.cpp
@@
-253,7
+253,8
@@
void SerialUContext::suspend()
{
/* determine the next context */
UContext* next_context = nullptr;
- unsigned long int i = sysv_process_index++;
+ unsigned long int i = sysv_process_index;
+ sysv_process_index++;
if (i < simix_global->process_to_run.size()) {
/* execute the next process */