Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New method: MutexImpl::is_granted()
[simgrid.git] / src / kernel / activity / MutexImpl.hpp
index cad25c3..51ef640 100644 (file)
@@ -55,6 +55,7 @@ public:
   MutexImplPtr get_mutex() { return mutex_; }
   actor::ActorImpl* get_issuer() { return issuer_; }
   void grant() { granted_ = true; }
+  bool is_granted() { return granted_; }
 
   bool test(actor::ActorImpl* issuer = nullptr) override;
   void wait_for(actor::ActorImpl* issuer, double timeout) override;