Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add cache for jfieldID/jmethodID on jtask/jcomm
[simgrid.git] / org / simgrid / msg / Task.java
index a680e64..393b2e7 100644 (file)
@@ -285,4 +285,12 @@ public class Task {
        public static int listenFromHost(String alias, Host host)   {
                return MsgNative.taskListenFromHost(alias, host);
        }
+       
+       /**
+        * Class initializer, to initialize various JNI stuff
+        */
+       public static native void nativeInit();
+       static {
+               nativeInit();
+       }
 }