2 * Copyright (c) 2012-2013. The SimGrid Team.
5 * This program is free software; you can redistribute
6 * it and/or modify it under the terms of the license
7 * (GNU LGPL) which comes with this package.
10 package org.simgrid.msg;
11 /** A mutex implemented on top of SimGrid synchronization mechanisms.
12 * You can use it exactly the same way that you use the mutexes,
13 * but to handle the interactions between the processes within the simulation.
17 private long bind; // The C object -- don't touch it
22 protected void finalize() {
25 private native void exit();
26 private native void init();
27 public native void acquire();
28 public native void release();
31 * Class initializer, to initialize various JNI stuff
33 public static native void nativeInit();