Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove deprecated restart function
[simgrid.git] / org / simgrid / msg / Process.java
index b726b8d..c6005d6 100644 (file)
@@ -1,12 +1,10 @@
 /*
- * $Id$
- *
- * Copyright 2006,2007 Martin Quinson, Malek Cherier           
+ * Copyright 2006-2012 The SimGrid team
  * All right reserved. 
  *
  * This program is free software; you can redistribute 
  * it and/or modify it under the terms of the license 
- *(GNU LGPL) which comes with this package. 
+ * (GNU LGPL) which comes with this package.
  */
 
 package org.simgrid.msg;
@@ -54,7 +52,7 @@ public abstract class Process implements Runnable {
         * a native process. Even if this attribute is public you must never
         * access to it. It is set automatically during the build of the object.
         */
-       public long bind;
+       private long bind;
        /**
         * Indicates if the process is started
         */
@@ -241,15 +239,6 @@ public abstract class Process implements Runnable {
        public void pause() {
                suspend();
        }
-       /**
-        * Resumes a suspended process by resuming the task on which it was
-        * waiting for the completion.
-        * DEPRECATED: use resume instead.
-        */ 
-       @Deprecated
-       public void restart() {
-               resume();
-       }
        /**
         * Resumes a suspended process by resuming the task on which it was
         * waiting for the completion.
@@ -392,6 +381,7 @@ public abstract class Process implements Runnable {
                 catch(ProcessKilledError pk) {
                         
                 }      
+               exit();
        }
 
        /**
@@ -402,7 +392,7 @@ public abstract class Process implements Runnable {
      */
        public abstract void main(String[]args) throws MsgException;
 
-    
+       public native void exit();    
        /**
         * Class initializer, to initialize various JNI stuff
         */