Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Implement a second veto on start. Activity must be assigned to a resource
[simgrid.git] / include / simgrid / s4u / Comm.hpp
index c952dcf..b202540 100644 (file)
@@ -132,6 +132,8 @@ public:
   size_t get_dst_data_size() const;
 
   Actor* get_sender() const;
+
+  bool is_assigned() { return (to_ != nullptr && from_ != nullptr) || (mailbox_ != nullptr); }
 };
 } // namespace s4u
 } // namespace simgrid