Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cosmetics.
[simgrid.git] / src / smpi / include / smpi_f2c.hpp
index c839d1c..ee02512 100644 (file)
@@ -25,6 +25,7 @@ private:
   static int f2c_id_;
   static f2c_lookup_type::size_type num_default_handles_;
   int my_f2c_id_ = -1;
+  bool deleted_ = false;
 
 protected:
   static void allocate_lookup()
@@ -34,8 +35,10 @@ protected:
   }
   static int f2c_id() { return f2c_id_; }
   static void f2c_id_increment() { f2c_id_++; }
+  void mark_as_deleted() { deleted_ = true; };
 
 public:
+  bool deleted() const { return deleted_; }
   static f2c_lookup_type* lookup() { return f2c_lookup_.get(); }
   F2C();
   virtual ~F2C() = default;
@@ -43,7 +46,7 @@ public:
   int add_f();
   static void free_f(int id) { f2c_lookup_->erase(id); }
   int c2f();
-  static void print_f2c_lookup();
+
   // This method should be overridden in all subclasses to avoid casting the result when calling it.
   // For the default one, the MPI_*_NULL returned is assumed to be NULL.
   static F2C* f2c(int id);