Class 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()  
    • Constructor Detail

      • Mutex

        public Mutex()
    • Method Detail

      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.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