Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge concerns - Adrien
[simgrid.git] / org / simgrid / msg / Comm.java
index bd84cb5..423371d 100644 (file)
@@ -15,7 +15,11 @@ public class Comm {
        /**
         * Indicates if the communication is a receiving communication
         */
-       boolean receiving;
+       protected boolean receiving;
+       /**
+        * Indicates if the communication is finished
+        */
+       protected boolean finished = false;
        /**
         * Represents the bind between the java comm and the
         * native C comm. You must never access it, since it is 
@@ -41,12 +45,12 @@ public class Comm {
         * Finalize the communication object, destroying it.
         */
        protected void finalize() throws Throwable {
-               unbind();
+               destroy();
        }
        /**
         * Unbind the communication object
         */
-       public native void unbind() throws NativeException;
+       protected native void destroy() throws NativeException;
        /**
         * Returns if the communication is finished or not.
         * If the communication has finished and there was an error,