Package org.simgrid.msg
Class Mutex
- java.lang.Object
-
- org.simgrid.msg.Mutex
-
public class Mutex extends java.lang.Object
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. Don't mix simgrid synchronization with Java native one, or it will deadlock!
-
-
Constructor Summary
Constructors Constructor Description Mutex()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acquire()
protected void
finalize()
static void
nativeInit()
Class initializer, to initialize various JNI stuffvoid
release()
-
-
-
Method Detail
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
acquire
public void acquire()
-
release
public void release()
-
nativeInit
public static void nativeInit()
Class initializer, to initialize various JNI stuff
-
-