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 fb69aad..e7b21d2 100644 (file)
@@ -35,7 +35,6 @@ public:
 
   bool test(actor::ActorImpl* issuer = nullptr) override { return granted_; }
   void wait_for(actor::ActorImpl* issuer, double timeout) override;
-  void post() override;
   void finish() override;
   void cancel() override;
   void set_exception(actor::ActorImpl* issuer) override
@@ -50,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;