X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0e9c0448c6566825b170b98ecff716b098bda10e..6fbcdfade89b3812c24152c86f8aa3be510df7f2:/src/bindings/java/org/simgrid/msg/Mutex.java?ds=sidebyside diff --git a/src/bindings/java/org/simgrid/msg/Mutex.java b/src/bindings/java/org/simgrid/msg/Mutex.java deleted file mode 100644 index 1b76bb8bb9..0000000000 --- a/src/bindings/java/org/simgrid/msg/Mutex.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2012-2013. The SimGrid Team. - * All rights 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. - * - */ -package org.simgrid.msg; -/** A mutex implemented on top of SimGrid synchronization mechanisms. - * You can use it exactly the same way that you use the mutexes, - * but to handle the interactions between the processes within the simulation. - * - */ -public class Mutex { - private long bind; // The C object -- don't touch it - - public Mutex() { - init(); - } - protected void finalize() { - exit(); - } - private native void exit(); - private native void init(); - public native void acquire(); - public native void release(); - - /** - * Class initializer, to initialize various JNI stuff - */ - public static native void nativeInit(); - static { - Msg.nativeInit(); - nativeInit(); - } -} - -