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
Make sure that the ID of a semaphore does not change over time
[simgrid.git]
/
src
/
kernel
/
activity
/
SemaphoreImpl.hpp
diff --git
a/src/kernel/activity/SemaphoreImpl.hpp
b/src/kernel/activity/SemaphoreImpl.hpp
index
ebb439b
..
e7b21d2
100644
(file)
--- a/
src/kernel/activity/SemaphoreImpl.hpp
+++ b/
src/kernel/activity/SemaphoreImpl.hpp
@@
-49,7
+49,7
@@
class XBT_PUBLIC SemaphoreImpl {
std::deque<SemAcquisitionImplPtr> ongoing_acquisitions_;
static unsigned next_id_;
- unsigned id_ = next_id_++;
+
const
unsigned id_ = next_id_++;
friend SemAcquisitionImpl;
friend actor::SemaphoreObserver;