Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make sure that the ID of a semaphore does not change over time
[simgrid.git] / src / kernel / activity / SemaphoreImpl.hpp
index ebb439b..e7b21d2 100644 (file)
@@ -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;