Class VolatileBoolean

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean compareAndSet​(boolean expect, boolean update)  
      boolean get()  
      void lazySet​(boolean newV)  
      void set​(boolean newV)  
      • Methods inherited from class java.lang.Object

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

      • VALUE_OFFSET

        private static final long VALUE_OFFSET
    • Constructor Detail

      • VolatileBoolean

        public VolatileBoolean()
      • VolatileBoolean

        public VolatileBoolean​(boolean v)
    • Method Detail

      • lazySet

        public void lazySet​(boolean newV)
      • set

        public void set​(boolean newV)
      • get

        public boolean get()
      • compareAndSet

        public final boolean compareAndSet​(boolean expect,
                                           boolean update)