Package org.simgrid.msg
Class Mutex
- java.lang.Object
-
- org.simgrid.msg.Mutex
-
public class Mutex extends java.lang.ObjectA 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 voidacquire()protected voidfinalize()static voidnativeInit()Class initializer, to initialize various JNI stuffvoidrelease()
-
-
-
Method Detail
-
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalizein 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
-
-