class org.simgrid.msg.Mutex

public class Mutex

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!

Constructors

Mutex

public Mutex()

Methods

acquire

public native void acquire()

finalize

protected void finalize()

nativeInit

public static native void nativeInit()

Class initializer, to initialize various JNI stuff

release

public native void release()