Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Tell the MC transition about the semaphore capacity and use it
[simgrid.git] / src / mc / transition / TransitionSynchro.hpp
index 66ed64c..a4ea7e3 100644 (file)
@@ -37,11 +37,13 @@ public:
 class SemaphoreTransition : public Transition {
   unsigned int sem_; // ID
   bool granted_;
+  unsigned capacity_;
 
 public:
   std::string to_string(bool verbose) const override;
   SemaphoreTransition(aid_t issuer, int times_considered, Type type, std::stringstream& stream);
   bool depends(const Transition* other) const override;
+  int get_capacity() const { return capacity_; }
 };
 
 } // namespace simgrid::mc