Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add isend in Task
[simgrid.git] / org / simgrid / msg / MsgNative.java
index e7f7759..3c11df8 100644 (file)
@@ -9,7 +9,9 @@
  *(GNU LGPL) which comes with this package. 
  */
 
-package simgrid.msg;
+package org.simgrid.msg;
+
+import org.simgrid.msg.Process;
 
 /* FIXME: split into internal classes of Msg, Task, Host etc. */
 
@@ -30,7 +32,7 @@ final class MsgNative {
         * @see  Process constructors.
         */
        final static native
-       void processCreate(Process process, Host host);
+       void processCreate(Process process, String hostName) throws HostNotFoundException;
 
        /**
         * The natively implemented method to kill all the process of the simulation.
@@ -148,7 +150,7 @@ final class MsgNative {
         * @see                Process.migrate()
         * @see                Host.getByName()
         */
-       final static native void processChangeHost(Process process, Host host) ;
+       final static native void processMigrate(Process process, Host host) ;
 
        /**
         * The natively implemented native to request the current process to sleep 
@@ -425,4 +427,6 @@ final class MsgNative {
         */ 
        final static native void taskSendBounded(String alias, Task task, double maxrate) throws TransferFailureException,HostFailureException,TimeoutException;
 
+       final static native void taskDSend(String mailbox, Task task);
+
 }