Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge commit '4df273f15273f959fc9e6ed69d2bf5e607ec9bf7' into HEAD
[simgrid.git] / org / simgrid / msg / Mutex.java
index 0930552..cb16ffb 100644 (file)
@@ -15,14 +15,14 @@ package org.simgrid.msg;
 public class Mutex {
        private long bind; // The C object -- don't touch it
        
-       public Mutex(int capa) {
-               init(capa);
+       public Mutex() {
+               init();
        }
        protected void finalize() {
                exit();
        }
        private native void exit();
-       private native void init(int capacity);
+       private native void init();
        public native void acquire();
        public native void release();
        
@@ -31,6 +31,7 @@ public class Mutex {
         */
        public static native void nativeInit();
        static {
+               Msg.nativeInit();
                nativeInit();
        }       
 }