Package org.jcsp.lang

Class Mutex


  • class Mutex
    extends java.lang.Object
    A package-visible class that implements a straightforward mutex, for use by One2AnyChannel and Any2AnyChannel
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean claimed  
    • Constructor Summary

      Constructors 
      Constructor Description
      Mutex()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void claim()  
      void release()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • claimed

        private boolean claimed
    • Constructor Detail

      • Mutex

        Mutex()
    • Method Detail

      • claim

        public void claim()
      • release

        public void release()